diff --git a/install.sh b/install.sh index 79cbe3c..4e14710 100644 --- a/install.sh +++ b/install.sh @@ -176,7 +176,7 @@ download() { is_ok=$is_core_ok ;; 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 脚本" tmpfile=$tmpsh is_ok=$is_sh_ok @@ -407,7 +407,7 @@ main() { if [[ $local_install ]]; then cp -rf $PWD/* $is_sh_dir else - tar zxf $is_sh_ok -C $is_sh_dir + tar zxf $is_sh_ok --strip-components 1 -C $is_sh_dir fi # create core bin dir