This commit is contained in:
Leon 2021-07-20 17:32:17 +08:00 committed by GitHub
parent d8fb9a3924
commit 5aec1277fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,10 @@ if [ $Rextra = 'y' ]; then
defaultNum=${defaultNum:-'4'}
sed -i "s/\$default4/\$default$defaultNum/g" $extra_shell_path
# 拷贝对应的 utils 文件夹
repo=(JDHelloWorld_jd_scripts/utils he1pu_JDHelp/utils shufflewzc_faker2/utils Aaron-lv_sync_jd_scripts/utils)
cp -rf $dir_repo/${repo[$defaultNum]} /ql/scripts
if [ $defaultNum -gt 1 -a $defaultNum -ne 5 ]; then
repo=(1 JDHelloWorld_jd_scripts/utils he1pu_JDHelp/utils shufflewzc_faker2/utils 5 Aaron-lv_sync_jd_scripts/utils)
cp -rf $dir_repo/${repo[$defaultNum]-1} /ql/scripts
fi
# 将 extra.sh 添加到定时任务
if [ "$(grep -c extra /ql/config/crontab.list)" = 0 ]; then
echo "开始添加 task ql extra"