mkdir -p
This commit is contained in:
parent
1ca2d1ad6e
commit
7916c165b4
@ -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)"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user