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
protal=oss
basePath=/var/tmp/autoDeploy
if [ -n $5 ]; then
user=$5
fi
if [ ! -d $basePath ]; then
mkdir $basePath -p
fi
if [ ! -d $workPath ]; then
echo workPath $workPath not exist!
exit 1

View File

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