From d2eff8a2015d26eab46beb20dbd0a4e20c9cb5fa Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Wed, 21 Jul 2021 13:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=F0=9F=8D=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1custom.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Scripts/sh/1custom.sh b/Scripts/sh/1custom.sh index 8cedb57..96f143b 100644 --- a/Scripts/sh/1custom.sh +++ b/Scripts/sh/1custom.sh @@ -11,8 +11,8 @@ task_before_shell_path=$dir_shell/task_before.sh # 控制是否执行变量 -read -p "是否全部替换或下载,建议初次配置选择,输入 1 即可全部替换,直接回车则跳出,默认不全部:" Rall -if [ "${Rall}" != "1" -a "${Rall}" ]; then +read -p "是否全部替换或下载,建议初次配置选择,输入 1 即可全部替换,输入 0 则跳出,默认不全部:" Rall +if [ "${Rall}" -a "${Rall}" != 0 ]; then echo "以下操作默认为是,不需要的请输入 n" read -p "是否替换或下载 config.sh y/n:" Rconfig Rconfig=${Rconfig:-'y'} @@ -24,6 +24,8 @@ if [ "${Rall}" != "1" -a "${Rall}" ]; then Rbefore=${Rbefore:-'y'} read -p "是否添加 task:ql bot(会拉取机器人并自动更新) y/n:" Rbot Rbot=${Rbot:-'y'} +elif [ "${Rall}" = 0 ]; then + exit 0 fi # 下载 config.sh