From 5682a64ba5cb552025b80b42868912e266b87787 Mon Sep 17 00:00:00 2001 From: Leon <62660101+Oreomeow@users.noreply.github.com> Date: Wed, 21 Jul 2021 15:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1end=20words?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1custom.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Scripts/sh/1custom.sh b/Scripts/sh/1custom.sh index 19d83a4..73e6971 100644 --- a/Scripts/sh/1custom.sh +++ b/Scripts/sh/1custom.sh @@ -66,7 +66,7 @@ if [ "${Rextra}" = 'y' -o "${Rall}" = 1 ]; then chmod 755 $extra_shell_path # extra.sh 预设仓库及默认拉取仓库设置 echo -e "(1)panghu999\n(2)JDHelloWorld\n(3)he1pu\n(4)shufflewzc\n(6)Aaron-lv" - read -p "输入你想拉取的仓库编号(默认为 4):" defaultNum + read -p "输入您想拉取的仓库编号(默认为 4):" defaultNum defaultNum=${defaultNum:-'4'} sed -i "s/\$default4/\$default$defaultNum/g" $extra_shell_path # 将 extra.sh 添加到定时任务 @@ -98,7 +98,7 @@ if [ "${Rcode}" = 'y' -o "${Rall}" = 1 ]; then chmod 755 $code_shell_path # code.sh 预设仓库及默认调用仓库设置 echo -e "## 将\"repo=\$repo1\"改成\"repo=\$repo2\"或其他,以默认调用其他仓库脚本日志\nrepo1='panghu999_jd_scripts' #预设的 panghu999 仓库\nrepo2='JDHelloWorld_jd_scripts' #预设的 JDHelloWorld 仓库\nrepo3='he1pu_JDHelp' #预设的 he1pu 仓库\nrepo4='shufflewzc_faker2' #预设的 shufflewzc 仓库\nrepo6='Aaron-lv_sync_jd_scripts' #预设的 Aaron-lv 仓库\nrepo=\$repo1 #默认调用 panghu999 仓库脚本日志" - read -p "输入你想调用的仓库编号(默认为 4):" + read -p "输入您想调用的仓库编号(默认为 4):" repoNum=${repoNum:-'4'} sed -i "s/\$repo1/\$repo$repoNum/g" $code_shell_path # 将 code.sh 添加到定时任务 @@ -141,3 +141,6 @@ elif [ "$(grep -c bot /ql/config/crontab.list)" = 0 ] && [ "${Rbot}" = 'y' -o "$ else echo "已为您跳过添加定时任务 ql bot" fi + +# 提示配置结束 +echo "配置到此结束,您是否成功了呢?"