mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
因未使用root而终止安装时,安装脚本需返回非0值
```bash : && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null : ^^ : 脚本返回非0值,后续命令不应继续执行 ```
This commit is contained in:
parent
35e998e697
commit
a1213e148e
|
@ -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】代表在线地址
|
||||
|
|
|
@ -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】代表在线地址
|
||||
|
|
Loading…
Reference in New Issue
Block a user