mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 16:01:28 +00:00
Fix installation alias selection
This commit is contained in:
@@ -45,6 +45,7 @@ error_down() {
|
|||||||
$echo "请参考 \033[32mhttps://github.com/juewuy/ShellCrash/blob/master/README_CN.md"
|
$echo "请参考 \033[32mhttps://github.com/juewuy/ShellCrash/blob/master/README_CN.md"
|
||||||
$echo "\033[33m使用其他安装源重新安装!\033[0m"
|
$echo "\033[33m使用其他安装源重新安装!\033[0m"
|
||||||
}
|
}
|
||||||
|
|
||||||
#安装及初始化
|
#安装及初始化
|
||||||
set_alias() {
|
set_alias() {
|
||||||
echo "-----------------------------------------------"
|
echo "-----------------------------------------------"
|
||||||
@@ -60,6 +61,7 @@ set_alias() {
|
|||||||
1) my_alias=crash ;;
|
1) my_alias=crash ;;
|
||||||
2) my_alias=sc ;;
|
2) my_alias=sc ;;
|
||||||
3) my_alias=mm ;;
|
3) my_alias=mm ;;
|
||||||
|
0) echo "安装已取消"; exit 1 ;;
|
||||||
*) my_alias=$res ;;
|
*) my_alias=$res ;;
|
||||||
esac
|
esac
|
||||||
cmd=$(ckcmd "$my_alias" | grep 'menu.sh')
|
cmd=$(ckcmd "$my_alias" | grep 'menu.sh')
|
||||||
@@ -69,6 +71,7 @@ set_alias() {
|
|||||||
set_alias
|
set_alias
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gettar() {
|
gettar() {
|
||||||
webget /tmp/ShellCrash.tar.gz "$url/ShellCrash.tar.gz"
|
webget /tmp/ShellCrash.tar.gz "$url/ShellCrash.tar.gz"
|
||||||
if [ "$result" != "200" ]; then
|
if [ "$result" != "200" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user