mkdir -p
This commit is contained in:
parent
1ca2d1ad6e
commit
7916c165b4
@ -4,6 +4,9 @@ projectPath=$2
|
||||
PATH=PATH:/usr/bin:/usr/sbin
|
||||
|
||||
basePath=$3
|
||||
if [ ! -d $basePath ]; then
|
||||
mkdir $basePath -p
|
||||
fi
|
||||
sleep 1
|
||||
cd $basePath
|
||||
echo "current path: $(pwd)"
|
||||
|
@ -14,6 +14,10 @@ preName="${fileName%.*}"
|
||||
|
||||
PATH=PATH:/usr/bin:/usr/sbin
|
||||
|
||||
if [ ! -d $workPath ]; then
|
||||
mkdir $workPath -p
|
||||
fi
|
||||
|
||||
function uploadLog()
|
||||
{
|
||||
ctype=$1
|
||||
|
@ -12,10 +12,14 @@ if [ -n $5 ]; then
|
||||
user=$5
|
||||
fi
|
||||
|
||||
if [ ! -d $workPath ]; then
|
||||
mkdir $workPath -p
|
||||
fi
|
||||
|
||||
PATH=PATH:/usr/bin:/usr/sbin
|
||||
projectName="${fileName%.*}" # html, zhuize
|
||||
preName="${fileName%.*}"
|
||||
|
||||
!
|
||||
function uploadLog()
|
||||
{
|
||||
ctype=$1
|
||||
|
@ -11,6 +11,9 @@ basePath=/tmp/autoDeploy
|
||||
if [ -n $3 ]; then
|
||||
basePath=$3
|
||||
fi
|
||||
if [ ! -d $basePath ]; then
|
||||
mkdir $basePath -p
|
||||
fi
|
||||
|
||||
function compare(){
|
||||
cd $basePath
|
||||
|
Loading…
x
Reference in New Issue
Block a user