From 89a699de5d04e6188e75914e2663f5f2c76c5b84 Mon Sep 17 00:00:00 2001 From: Leon Date: Tue, 10 Aug 2021 23:58:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8Fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1custom.sh | 6 +++--- Scripts/sh/1customCDN.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/sh/1custom.sh b/Scripts/sh/1custom.sh index 1e95f67..6701e59 100644 --- a/Scripts/sh/1custom.sh +++ b/Scripts/sh/1custom.sh @@ -137,12 +137,12 @@ dl_code_shell(){ } # code.sh 预设仓库及默认调用仓库设置 set_default_code(){ - 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 仓库\nrepo7='yuannian1112_jd_scripts' #预设的 yuannian1112 仓库\nrepo=\$repo1 #默认调用 panghu999 仓库脚本日志" + 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 仓库\nrepoA='yuannian1112_jd_scripts' #预设的 yuannian1112 仓库\nrepo=\$repo1 #默认调用 panghu999 仓库脚本日志" read -p "输入您想调用的仓库编号(默认为 4):" repoNum repoNum=${repoNum:-'4'} sed -i "s/repo=\$repo6/repo=\$repo${repoNum}/g" $code_shell_path - if [ "${repoNum}" = 7 ]; then - sed -i "/^repo6=/a\repo7='yuannian1112_jd_scripts'" $code_shell_path + if [ "${repoNum}" = 'A' ]; then + sed -i "/^repo7=/a\repoA='yuannian1112_jd_scripts'" $code_shell_path fi } # 将 task code.sh 添加到定时任务 diff --git a/Scripts/sh/1customCDN.sh b/Scripts/sh/1customCDN.sh index 77ae796..c37a70a 100644 --- a/Scripts/sh/1customCDN.sh +++ b/Scripts/sh/1customCDN.sh @@ -184,12 +184,12 @@ dl_code_shell(){ } # code.sh 预设仓库及默认调用仓库设置 set_default_code(){ - 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 仓库\nrepo7='yuannian1112_jd_scripts' #预设的 yuannian1112 仓库\nrepo=\$repo1 #默认调用 panghu999 仓库脚本日志" + 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 仓库\nrepoA='yuannian1112_jd_scripts' #预设的 yuannian1112 仓库\nrepo=\$repo1 #默认调用 panghu999 仓库脚本日志" read -p "输入您想调用的仓库编号(默认为 4):" repoNum repoNum=${repoNum:-'4'} sed -i "s/repo=\$repo6/repo=\$repo${repoNum}/g" $code_shell_path - if [ "${repoNum}" = 7 ]; then - sed -i "/^repo6=/a\repo7='yuannian1112_jd_scripts'" $code_shell_path + if [ "${repoNum}" = 'A' ]; then + sed -i "/^repo7=/a\repoA='yuannian1112_jd_scripts'" $code_shell_path fi } # 将 task code.sh 添加到定时任务