10 Commits

Author SHA1 Message Date
monlor
20bc614a0d 2020-03-06 17:14:26 2020-03-06 17:14:27 +08:00
monlor
34383b4822 2020-03-06 17:13:12 2020-03-06 17:13:12 +08:00
monlor
d2900f10af 2020-03-06 17:07:47 2020-03-06 17:07:47 +08:00
monlor
d596fc1459 2020-03-06 17:06:42 2020-03-06 17:06:42 +08:00
monlor
6a9775ec7e 2020-03-06 17:05:23 2020-03-06 17:05:23 +08:00
monlor
cd2e72b39f 2020-03-06 17:03:23 2020-03-06 17:03:23 +08:00
monlor
bad4399228 2020-03-06 16:59:48 2020-03-06 16:59:48 +08:00
monlor
7507e83f00 2020-03-06 16:59:19 2020-03-06 16:59:19 +08:00
monlor
2368ae18ed 2020-03-06 16:58:16 2020-03-06 16:58:17 +08:00
monlor
afd444a45f 2020-03-06 16:08:36 2020-03-06 16:08:36 +08:00
4 changed files with 5 additions and 12 deletions

View File

@@ -7,13 +7,6 @@ on:
- master - master
- test - test
- dev - dev
tags-ignore:
- deploy-*
- test-*
- master-*
ignore-paths:
- '.github'
- 'README.md'
pull_request: pull_request:
branchs: branchs:
- master - master

View File

@@ -3,5 +3,5 @@ appname="mixbox"
needver="" needver=""
supports="linux_arm,linux_mips,linux_x86_64" supports="linux_arm,linux_mips,linux_x86_64"
appinfo="一款支持多平台多架构的Shell工具箱" appinfo="一款支持多平台多架构的Shell工具箱"
newinfo="新增base64_encode工具" newinfo="修复插件安装失败的bug"
version="0.1.9.2" version="0.1.9.3"

View File

@@ -13,10 +13,10 @@ wgetsh() {
result1=$(curl -skL --connect-timeout 10 -m 20 -w %{http_code} -o "${mbtmp}/${wgetfilename}" "$wgeturl") result1=$(curl -skL --connect-timeout 10 -m 20 -w %{http_code} -o "${mbtmp}/${wgetfilename}" "$wgeturl")
else else
wget-ssl -q --no-check-certificate --tries=1 --timeout=10 -O "${mbtmp}/${wgetfilename}" "$wgeturl" wget-ssl -q --no-check-certificate --tries=1 --timeout=10 -O "${mbtmp}/${wgetfilename}" "$wgeturl"
[ $? -eq 0 ] && result="200" [ $? -eq 0 ] && result1="200"
fi fi
[ -f "${mbtmp}/${wgetfilename}" ] && result2=$(du -sh "${mbtmp}/${wgetfilename}" 2> /dev/null | awk '{print$1}') [ -f "${mbtmp}/${wgetfilename}" ] && result2=$(du -sh "${mbtmp}/${wgetfilename}" 2> /dev/null | awk '{print$1}')
if [ "$result" = "200" ] && [ "$result2" != '0' ]; then if [ "$result1" = "200" ] && [ "$result2" != '0' ]; then
chmod +x ${mbtmp}/${wgetfilename} > /dev/null 2>&1 chmod +x ${mbtmp}/${wgetfilename} > /dev/null 2>&1
mv -f ${mbtmp}/${wgetfilename} $wgetfilepath > /dev/null 2>&1 mv -f ${mbtmp}/${wgetfilename} $wgetfilepath > /dev/null 2>&1
return 0 return 0