fix: 青龙执行脚本时出错(#202)

This commit is contained in:
shanmite 2022-09-24 20:35:29 +08:00
parent ae4d1fde91
commit 468300227d

View File

@ -2,6 +2,8 @@
set -e
NAME=LotteryAutoScript
# 视网络情况选择链接
GIT_REPO=https://github.com/shanmiteko/${NAME}.git
# GIT_REPO=https://ghproxy.com/https://github.com/shanmiteko/${NAME}.git
@ -14,11 +16,13 @@ else
fi
if [ -f "$NAME/my_config.js" ]; then
echo 'my_config 已存在'
else
cp $NAME/my_config.example.js $NAME/my_config.js
fi
if [ -f "$NAME/env.js" ]; then
echo 'env.js 已存在'
else
cp $NAME/env.example.js $NAME/env.js
fi