diff options
Diffstat (limited to 'deploy.sh')
| -rwxr-xr-x | deploy.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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/ |
