mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-14 09:21:27 +00:00
修复一些下载源失效的问题
This commit is contained in:
@@ -5,7 +5,8 @@ export PATH=$PATH:/etc/mixbox/bin
|
||||
mburl_coding="https://monlor.coding.net/p/mbfiles/d/mbfiles/git/lfs/master"
|
||||
mburl_github="https://raw.githubusercontent.com/monlor/mbfiles/master"
|
||||
mburl_gitee="https://gitee.com/monlor/mbfiles/raw/master"
|
||||
mburl=$(mbdb get mixbox.main.url) || mburl="$mburl_gitee"
|
||||
mburl_ghcdn="https://cdn.jsdelivr.net/gh/monlor/mbfiles"
|
||||
mburl=$(mbdb get mixbox.main.url) || mburl="$mburl_coding"
|
||||
mbroot=$(mbdb get mixbox.main.path)
|
||||
mbdisk=$(mbdb get mixbox.main.mbdisk)
|
||||
mbbackup="/etc/mbbackup"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
e#!/bin/sh
|
||||
#copyright by monlor
|
||||
#------------------【Tools】--------------------
|
||||
source /etc/mixbox/bin/base
|
||||
@@ -172,6 +172,7 @@ modify_source() {
|
||||
"$mburl_coding") url_text="coding下载源" ;;
|
||||
"$mburl_github") url_text="github下载源" ;;
|
||||
# "$mburl_gitee") url_text="gitee下载源" ;;
|
||||
"$mburl_ghcdn") url_text="ghcdn下载源" ;;
|
||||
*) url_text="$mburl" ;;
|
||||
esac
|
||||
echo "下载源【$url_text】使用中"
|
||||
@@ -179,12 +180,14 @@ modify_source() {
|
||||
echo "1. coding下载源"
|
||||
echo "2. github下载源"
|
||||
# echo "3. gitee下载源(推荐)"
|
||||
echo "3. ghcdn下载源"
|
||||
read -p "请选择或输入下载源:" res
|
||||
case "$res" in
|
||||
0) return ;;
|
||||
1) mburl_tmp="$mburl_coding" ;;
|
||||
2) mburl_tmp="$mburl_github" ;;
|
||||
# 3) mburl_tmp="$mburl_gitee" ;;
|
||||
3) mburl_tmp="$mburl_ghcdn" ;;
|
||||
*) [ -n "$res" ] && mburl_tmp="$res" ;;
|
||||
esac
|
||||
if [ -n "$mburl_tmp" ]; then
|
||||
@@ -286,7 +289,7 @@ menulist() {
|
||||
checkuci $name && continue
|
||||
|
||||
fi
|
||||
appver="$(cat $mbtmp/applist.txt | grep "^$name|" | cut -d'|' -f4)"
|
||||
appver="$(cat $mbtmp/applist.txt &> /dev/null | grep "^$name|" | cut -d'|' -f4)"
|
||||
echo $name >> ${mbtmp}/applist_menu.txt
|
||||
let i=$i+1
|
||||
args="\t"
|
||||
|
||||
@@ -3,5 +3,5 @@ appname="mixbox"
|
||||
needver=""
|
||||
supports="linux_aarch64,linux_arm,linux_mips,linux_x86_64"
|
||||
appinfo="一款支持多平台,多架构的Shell工具箱"
|
||||
newinfo="修复插件列表为空的bug"
|
||||
version="0.1.9.11"
|
||||
newinfo="新增下载源ghcdn"
|
||||
version="0.1.9.12"
|
||||
|
||||
Reference in New Issue
Block a user