aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index 045e03f..d380b76 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -7,5 +7,12 @@ if [ $# -eq 0 ]; then
echo 'Should provide least one argument'
exit 1
fi
+
+if [ -z ${SSH_CLIENT+x} ]; then
+ ADDITIONAL_PARAM="-Pv"
+else
+ ADDITIONAL_PARAM=""
+fi
+
/usr/bin/date +%s > "packages/LASTSYNC"
-/usr/bin/rsync --partial -r -c --update --links --delete --exclude=.gitignore "packages/" $1:/var/www/repo/
+/usr/bin/rsync --partial $ADDITIONAL_PARAM -r -c --update --links --delete --exclude=.gitignore "packages/" $1:/var/www/repo/