修复添加ck,初始化目录缺失

This commit is contained in:
whyour
2021-04-16 19:32:27 +08:00
parent 0563555a6a
commit ac5e2e404e
6 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ mkdir -p ${diyscriptsdir}
if [ ! -d "$diyscriptsdir/${author}_${repo}" ]; then
echo -e "${author}本地仓库不存在,从远程拉取ing..."
repoTmp=${url##*/}
repo=${repoTmpName%.*}
repo=${repoTmp%.*}
tmp=${url%/*}
author=${tmp##*/}
cd ${diyscriptsdir} && git clone $url ${author}_${repo}
+1 -4
View File
@@ -6,11 +6,8 @@ ShellDir=${QL_DIR:-$(
)}
[[ $QL_DIR ]] && ShellJs=js
LogDir=$ShellDir/log
[ ! -d $LogDir ] && mkdir -p $LogDir
DbDir=$ShellDir/db
[ ! -d $DbDir ] && mkdir -p $DbDir
ManualLogDir=$ShellDir/manual_log
[ ! -d $ManualLogDir ] && mkdir -p $ManualLogDir
ScriptsDir=$ShellDir/scripts
ConfigDir=$ShellDir/config
FileConf=$ConfigDir/config.sh
@@ -177,7 +174,7 @@ Git_Pull_Scripts() {
}
Git_Pull_Scripts_Next() {
if [[ $ExitStatusShell -eq 0 ]]; then
if [[ $ExitStatusScripts -eq 0 ]]; then
echo -e "更新scripts成功...\n"
[ ! -d $ScriptsDir/node_modules ] && Npm_Install scripts
[ -f $ScriptsDir/package.json ] && ScriptsDependNew=$(cat $ScriptsDir/package.json)