diff --git a/Scripts/sh/1custom.sh b/Scripts/sh/1custom.sh index 5920cf8..8cedb57 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 即可全部替换,直接回车则跳出,默认不全部:" Rall +if [ "${Rall}" != "1" -a "${Rall}" ]; then echo "以下操作默认为是,不需要的请输入 n" read -p "是否替换或下载 config.sh y/n:" Rconfig Rconfig=${Rconfig:-'y'}