1 Star 0 Fork 5

ITCrowed/jd_Scripts

forked from Su-yj/jd_Scripts 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_fixpull_.sh 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
dylan 提交于 2023-06-16 13:36 . 1
#!/usr/bin/env bash
#15 3 * * 3 jd_fixpull_.sh
#new Env('拉库失败修复');
## Build 20230429
echo -e '\n开始修复。。。\n'
DIR="$( cd "$( dirname $0 )" >/dev/null 2>&1 && pwd )"
#echo $DIR
function fix(){
if [[ -z "$(echo "$DIR"|grep 'main')" ]];then
if [[ -d /ql/repo/6dylan6_jdpro ]];then
rm -rf /ql/repo/6dylan6_jdpro
#ql repo https://ghproxy.com/https://github.com/6dylan6/jdpro.git "jd_|jx_|jddj_" "backUp" "^jd[^_]|USER|JD|function|sendNotify"
elif [[ -d /ql/data/repo/6dylan6_jdpro ]];then
rm -rf /ql/data/repo/6dylan6_jdpro
#ql repo https://ghproxy.com/https://github.com/6dylan6/jdpro.git "jd_|jx_|jddj_" "backUp" "^jd[^_]|USER|JD|function|sendNotify"
else
echo -e '无需修复,拉不动可能是代理问题'
#find /ql -maxdepth 2 -type d
return 1
fi
else
if [[ -d /ql/repo/6dylan6_jdpro_main ]];then
rm -rf /ql/repo/6dylan6_jdpro_main
#ql repo https://ghproxy.com/https://github.com/6dylan6/jdpro.git "jd_|jx_|jddj_" "backUp" "^jd[^_]|USER|JD|function|sendNotify" "main"
elif [[ -d /ql/data/repo/6dylan6_jdpro_main ]];then
rm -rf /ql/data/repo/6dylan6_jdpro_main
#ql repo https://ghproxy.com/https://github.com/6dylan6/jdpro.git "jd_|jx_|jddj_" "backUp" "^jd[^_]|USER|JD|function|sendNotify" "main"
else
echo -e '无需修复,拉不动可能是代理问题\n'
#find /ql -maxdepth 2 -type d
return 1
fi
fi
}
fix
[[ $(echo $?) -eq 0 ]] && echo -e '修复完成,再拉库试试!,如果还不行是网络或代理问题!!!'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/AxesJonney/jd_Scripts.git
git@gitee.com:AxesJonney/jd_Scripts.git
AxesJonney
jd_Scripts
jd_Scripts
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385