This commit is contained in:
zhangkun9038@dingtalk.com 2022-10-21 15:49:45 +00:00
parent 1ca2d1ad6e
commit 7916c165b4
4 changed files with 15 additions and 1 deletions

View File

@ -4,6 +4,9 @@ projectPath=$2
PATH=PATH:/usr/bin:/usr/sbin PATH=PATH:/usr/bin:/usr/sbin
basePath=$3 basePath=$3
if [ ! -d $basePath ]; then
mkdir $basePath -p
fi
sleep 1 sleep 1
cd $basePath cd $basePath
echo "current path: $(pwd)" echo "current path: $(pwd)"

View File

@ -14,6 +14,10 @@ preName="${fileName%.*}"
PATH=PATH:/usr/bin:/usr/sbin PATH=PATH:/usr/bin:/usr/sbin
if [ ! -d $workPath ]; then
mkdir $workPath -p
fi
function uploadLog() function uploadLog()
{ {
ctype=$1 ctype=$1

View File

@ -12,10 +12,14 @@ if [ -n $5 ]; then
user=$5 user=$5
fi fi
if [ ! -d $workPath ]; then
mkdir $workPath -p
fi
PATH=PATH:/usr/bin:/usr/sbin PATH=PATH:/usr/bin:/usr/sbin
projectName="${fileName%.*}" # html, zhuize projectName="${fileName%.*}" # html, zhuize
preName="${fileName%.*}" preName="${fileName%.*}"
!
function uploadLog() function uploadLog()
{ {
ctype=$1 ctype=$1

View File

@ -11,6 +11,9 @@ basePath=/tmp/autoDeploy
if [ -n $3 ]; then if [ -n $3 ]; then
basePath=$3 basePath=$3
fi fi
if [ ! -d $basePath ]; then
mkdir $basePath -p
fi
function compare(){ function compare(){
cd $basePath cd $basePath