From cc909dd633493e918ec04f1ed90e8acdc71422f2 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 20 Apr 2023 09:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore(=E8=84=9A=E6=9C=AC):=20?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E8=87=AA=E5=8A=A8=E9=87=8D=E5=90=AF=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=BF=AE=E5=A4=8Dconfig=E6=9B=B4=E6=96=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pushAndRestart.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pushAndRestart.sh b/pushAndRestart.sh index fbc6b5fef..e62ae58c7 100755 --- a/pushAndRestart.sh +++ b/pushAndRestart.sh @@ -91,14 +91,20 @@ case $input in while(( $int<=$length )) do addr=${sshAddr[$int-1]} - curEnv=${envs[$int-1]} destUrl='root@'${addr}':/root/zyz/' echo $destUrl rsync -av --include '.babelrc' --include '.eslintrc.js' --exclude-from='exclude-file.txt' --progress --inplace --no-owner --no-group --rsh='ssh -p'${port} . ${destUrl} + let "int++" + done + int=1 + while(( $int<=$length )) + do + addr=${sshAddr[$int-1]} + curEnv=${envs[$int-1]} + echo $curEnv $addr sshFun $curEnv $addr let "int++" done - echo '$$$' ;; [nN][oO]|[nN]) echo "No"