This commit is contained in:
+2
-2
@@ -176,7 +176,7 @@ download() {
|
|||||||
is_ok=$is_core_ok
|
is_ok=$is_core_ok
|
||||||
;;
|
;;
|
||||||
sh)
|
sh)
|
||||||
link=https://github.com/${is_sh_repo}/releases/latest/download/code.tar.gz
|
link=https://git.lll.rest/svefnz/sing-box/archive/main.tar.gz
|
||||||
name="$is_core_name 脚本"
|
name="$is_core_name 脚本"
|
||||||
tmpfile=$tmpsh
|
tmpfile=$tmpsh
|
||||||
is_ok=$is_sh_ok
|
is_ok=$is_sh_ok
|
||||||
@@ -407,7 +407,7 @@ main() {
|
|||||||
if [[ $local_install ]]; then
|
if [[ $local_install ]]; then
|
||||||
cp -rf $PWD/* $is_sh_dir
|
cp -rf $PWD/* $is_sh_dir
|
||||||
else
|
else
|
||||||
tar zxf $is_sh_ok -C $is_sh_dir
|
tar zxf $is_sh_ok --strip-components 1 -C $is_sh_dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create core bin dir
|
# create core bin dir
|
||||||
|
|||||||
Reference in New Issue
Block a user