修复diy脚本语法

This commit is contained in:
whyour 2021-04-11 23:32:37 +08:00
parent c2964ec1bb
commit bdfec42652

View File

@ -35,6 +35,7 @@ if [ ! -d "$diyscriptsdir/${author}_${repo}" ]; then
local url="https://ghproxy.com/https://github.com/${author}/${repo}" local url="https://ghproxy.com/https://github.com/${author}/${repo}"
if [ $author == "monk-coder" ] && [ $repo == "dust" ]; then if [ $author == "monk-coder" ] && [ $repo == "dust" ]; then
url="git@github.com:monk-coder/dust.git" url="git@github.com:monk-coder/dust.git"
fi
cd ${diyscriptsdir} && git clone $url ${author}_${repo} cd ${diyscriptsdir} && git clone $url ${author}_${repo}
gitpullstatus=$? gitpullstatus=$?
[ $gitpullstatus -eq 0 ] && echo -e "${author}本地仓库拉取完毕" [ $gitpullstatus -eq 0 ] && echo -e "${author}本地仓库拉取完毕"