修复diy命令,decodeURI参数,更换logo

This commit is contained in:
whyour
2021-04-19 16:27:04 +08:00
parent ac5e2e404e
commit 2645716d49
6 changed files with 25 additions and 16 deletions
+8 -4
View File
@@ -29,12 +29,16 @@ fi
diyscriptsdir=/ql/diyscripts
mkdir -p ${diyscriptsdir}
urlTmp=${url%*/}
repoTmp=${urlTmp##*/}
repo=${repoTmp%.*}
tmp=${url%/*}
authorTmp1=${tmp##*/}
authorTmp2=${authorTmp1##*:}
author=${authorTmp2##*.}
if [ ! -d "$diyscriptsdir/${author}_${repo}" ]; then
echo -e "${author}本地仓库不存在,从远程拉取ing..."
repoTmp=${url##*/}
repo=${repoTmp%.*}
tmp=${url%/*}
author=${tmp##*/}
cd ${diyscriptsdir} && git clone $url ${author}_${repo}
gitpullstatus=$?
[ $gitpullstatus -eq 0 ] && echo -e "${author}本地仓库拉取完毕"