mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复添加ck,初始化目录缺失
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user