~优化文件结构,准备将bin文件放到单独分支

This commit is contained in:
juewuy
2025-12-09 19:21:22 +08:00
parent 8c9752faa4
commit 546c8ee487
8 changed files with 11 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ error_down() {
}
#安装及初始化
gettar() {
webget /tmp/ShellCrash.tar.gz "$url/bin/ShellCrash.tar.gz"
webget /tmp/ShellCrash.tar.gz "$url/ShellCrash.tar.gz"
if [ "$result" != "200" ]; then
$echo "\033[33m文件下载失败\033[0m"
error_down
@@ -259,8 +259,8 @@ if [ -n "$(echo $url | grep master)" ]; then
setversion
fi
#获取版本信息
webget /tmp/version "$url/bin/version" echooff
[ "$result" = "200" ] && versionsh=$(cat /tmp/version | grep "versionsh" | awk -F "=" '{print $2}')
webget /tmp/version "$url/version" echooff
[ "$result" = "200" ] && versionsh=$(cat /tmp/version)
rm -rf /tmp/version
#输出