diff --git a/install.sh b/install.sh index 380841f..f45fa2e 100644 --- a/install.sh +++ b/install.sh @@ -18,7 +18,7 @@ if [ "$USER" != "root" -a -z "$systype" ];then $echo "\033[31m请尽量使用root用户(不要直接使用sudo命令!)执行安装!\033[0m" echo ----------------------------------------------- read -p "仍要安装?可能会产生未知错误!(1/0) > " res - [ "$res" != "1" ] && exit + [ "$res" != "1" ] && exit 1 fi webget(){ #参数【$1】代表下载目录,【$2】代表在线地址 diff --git a/install_n.sh b/install_n.sh index 380841f..f45fa2e 100644 --- a/install_n.sh +++ b/install_n.sh @@ -18,7 +18,7 @@ if [ "$USER" != "root" -a -z "$systype" ];then $echo "\033[31m请尽量使用root用户(不要直接使用sudo命令!)执行安装!\033[0m" echo ----------------------------------------------- read -p "仍要安装?可能会产生未知错误!(1/0) > " res - [ "$res" != "1" ] && exit + [ "$res" != "1" ] && exit 1 fi webget(){ #参数【$1】代表下载目录,【$2】代表在线地址