🔨adjust

This commit is contained in:
Leon 2021-08-06 00:43:01 +08:00 committed by GitHub
parent 41b7868e82
commit d871e6a62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,7 @@ 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 仓库脚本日志"
read -p "输入您想调用的仓库编号(默认为 4):" repoNum
repoNum=${repoNum:-'4'}
sed -i "s/\$repo4/\$repo${repoNum}/g" $code_shell_path
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
fi