2020-04-26 09:44:29

This commit is contained in:
monlor
2020-04-26 09:44:29 +08:00
parent 0887ef8564
commit 827362c678
10 changed files with 51 additions and 23 deletions

View File

@@ -69,7 +69,8 @@ get_applist() {
update_applist() {
wgetsh ${mbtmp}/applist_tmp.txt $mburl/applist.txt
if [ $? -eq 0 ]; then
# 判断applist的内容防止软件源异常
if [ $? -eq 0 ] && [ -n `cat ${mbtmp}/applist_tmp.txt | grep -E "^mixbox"` ]; then
rm -rf ${mbtmp}/applist.txt
cat ${mbtmp}/applist_tmp.txt | grep "${model}" | sort -u | while read line; do
local install_text=""

View File

@@ -3,7 +3,7 @@
export PATH=$PATH:/etc/mixbox/bin
mburl_coding="https://monlor.coding.net/p/mbfiles/d/mbfiles/git/raw/master"
mburl_github="https://raw.githubusercontent.com/monlor/MIXBOX/master"
mburl_github="https://raw.githubusercontent.com/monlor/mbfiles/master"
# mburl_test="https://monlor.coding.net/p/mbfiles/d/mbfiles/git/raw/test"
mburl=$(mbdb get mixbox.main.url) || mburl="$mburl_coding"
mbroot=$(mbdb get mixbox.main.path)