tempfile path changed

This commit is contained in:
zhangkun9038@dingtalk.com 2023-05-02 22:32:32 +08:00
parent 78b197315b
commit 6c0a8af4a9
2 changed files with 11 additions and 2 deletions

View File

@ -9,11 +9,16 @@ ossLogPath=$4
user=$USER user=$USER
protal=oss protal=oss
basePath=/var/tmp/autoDeploy
if [ -n $5 ]; then if [ -n $5 ]; then
user=$5 user=$5
fi fi
if [ ! -d $basePath ]; then
mkdir $basePath -p
fi
if [ ! -d $workPath ]; then if [ ! -d $workPath ]; then
echo workPath $workPath not exist! echo workPath $workPath not exist!
exit 1 exit 1

View File

@ -9,15 +9,19 @@ preName="${fileName%.*}"
protol=oss protol=oss
basePath=/tmp/autoDeploy basePath=/var/temp/autoDeploy
if [ -n $3 ]; then if [ -n $3 ]; then
basePath=$3 basePath=$RR
fi fi
if [ ! -d $basePath ]; then if [ ! -d $basePath ]; then
mkdir $basePath -p mkdir $basePath -p
fi fi
function compare(){ function compare(){
if [ ! -d $basePath ]; then
mkdir $basePath
fi
cd $basePath cd $basePath
if [ ! -f ${fileName}_oss.info ]; then if [ ! -f ${fileName}_oss.info ]; then
touch ${fileName}_oss.info touch ${fileName}_oss.info