diff --git a/src/common/service/impl/build_javascript.sh b/src/common/service/impl/build_javascript.sh index aaf3dca..451143c 100755 --- a/src/common/service/impl/build_javascript.sh +++ b/src/common/service/impl/build_javascript.sh @@ -10,7 +10,7 @@ if [ "$4" -eq "2" ]; then fi if [ ! -d $modulesPath ]; then - mkdir $modulesPath + mkdir -p $modulesPath fi cp -f $projectPath/package.json $modulesPath diff --git a/src/common/service/impl/deploy.sh b/src/common/service/impl/deploy.sh index f130281..e7b2baa 100755 --- a/src/common/service/impl/deploy.sh +++ b/src/common/service/impl/deploy.sh @@ -6,7 +6,7 @@ ip=$4 port=$5 topath=$6 expect -c " -spawn rsync -raqpPL --delete $h5zip $userid@$ip:$topath +spawn rsync -raqpPL -e "ssh -p $port" --delete $h5zip $userid@$ip:$topath expect { \"*assword\" {set timeout 300;send \"$pw\r\";} \"yes/no\" {send \"yes\r\"; exp_continue;}