Fix installation alias selection

This commit is contained in:
nested-universe
2026-01-03 09:21:57 +08:00
committed by GitHub
parent 6108f66acc
commit e57ae68396

View File

@@ -45,6 +45,7 @@ error_down() {
$echo "请参考 \033[32mhttps://github.com/juewuy/ShellCrash/blob/master/README_CN.md"
$echo "\033[33m使用其他安装源重新安装\033[0m"
}
#安装及初始化
set_alias() {
echo "-----------------------------------------------"
@@ -60,6 +61,7 @@ set_alias() {
1) my_alias=crash ;;
2) my_alias=sc ;;
3) my_alias=mm ;;
0) echo "安装已取消"; exit 1 ;;
*) my_alias=$res ;;
esac
cmd=$(ckcmd "$my_alias" | grep 'menu.sh')
@@ -69,6 +71,7 @@ set_alias() {
set_alias
}
}
gettar() {
webget /tmp/ShellCrash.tar.gz "$url/ShellCrash.tar.gz"
if [ "$result" != "200" ]; then