aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2021-11-03 20:10:23 +0800
committerKunoiSayami <[email protected]>2021-11-03 20:10:23 +0800
commit9d8366eeb58608452072ccf2ecd81c50c2dca3a9 (patch)
treecb9c97ae1b87c31f8e031abce64bed3d2e61e676 /deploy.sh
parent7833bbf7de0958551831b584464f67e4af3f6a1b (diff)
fix(script): [REBUILD] Fix deploy wrong condition
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/deploy.sh b/deploy.sh
index d380b76..462cfdf 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -9,10 +9,10 @@ if [ $# -eq 0 ]; then
fi
if [ -z ${SSH_CLIENT+x} ]; then
- ADDITIONAL_PARAM="-Pv"
+ ADDITIONAL_PARAM="--partial"
else
- ADDITIONAL_PARAM=""
+ ADDITIONAL_PARAM="-Pv"
fi
/usr/bin/date +%s > "packages/LASTSYNC"
-/usr/bin/rsync --partial $ADDITIONAL_PARAM -r -c --update --links --delete --exclude=.gitignore "packages/" $1:/var/www/repo/
+/usr/bin/rsync $ADDITIONAL_PARAM -r -c --update --links --delete --exclude=.gitignore "packages/" $1:/var/www/repo/