From b6068a50e436d8b276918e8500b36076bea25d0e Mon Sep 17 00:00:00 2001 From: A7T Date: Sat, 26 Jun 2021 15:51:46 +0800 Subject: [PATCH] Fix. --- install.sh | 8 ++++---- install_n.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index f45fa2e..6a4e3bc 100644 --- a/install.sh +++ b/install.sh @@ -51,7 +51,7 @@ echo ----------------------------------------------- read -p "请输入相应数字 > " num if [ -z $num ];then echo 安装已取消 - exit; + exit 1; elif [ "$num" = "1" ];then webget /tmp/clashrelease $url/bin/release_version echoon rediroff 2>/tmp/clashrelease if [ "$result" = "200" ];then @@ -159,7 +159,7 @@ else #设置目录 if [ -z $num ];then echo 安装已取消 - exit; + exit 1; elif [ "$num" = "1" ];then dir=/etc elif [ "$num" = "2" ];then @@ -179,7 +179,7 @@ else fi else echo 安装已取消!!! - exit; + exit 1; fi fi if [ ! -w $dir ];then @@ -217,7 +217,7 @@ if [ -n "$clashdir" ];then install else $echo "\033[31m输入错误!已取消安装!\033[0m" - exit; + exit 1; fi else setdir diff --git a/install_n.sh b/install_n.sh index f45fa2e..6a4e3bc 100644 --- a/install_n.sh +++ b/install_n.sh @@ -51,7 +51,7 @@ echo ----------------------------------------------- read -p "请输入相应数字 > " num if [ -z $num ];then echo 安装已取消 - exit; + exit 1; elif [ "$num" = "1" ];then webget /tmp/clashrelease $url/bin/release_version echoon rediroff 2>/tmp/clashrelease if [ "$result" = "200" ];then @@ -159,7 +159,7 @@ else #设置目录 if [ -z $num ];then echo 安装已取消 - exit; + exit 1; elif [ "$num" = "1" ];then dir=/etc elif [ "$num" = "2" ];then @@ -179,7 +179,7 @@ else fi else echo 安装已取消!!! - exit; + exit 1; fi fi if [ ! -w $dir ];then @@ -217,7 +217,7 @@ if [ -n "$clashdir" ];then install else $echo "\033[31m输入错误!已取消安装!\033[0m" - exit; + exit 1; fi else setdir