summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-08 13:13:27 +0200
committeremkael <emkael@tlen.pl>2017-09-08 13:13:27 +0200
commitd94077ed47e62b71e2a16740d3a643582f642690 (patch)
treebb16a1a8971d1523cf7b654dd3fe22c3f4377936 /bin
parentab6ffe56eb47ab58c735f88de84cab6e98c8e311 (diff)
Ignore, not delete .menu.html files on deploy
Diffstat (limited to 'bin')
-rwxr-xr-xbin/deploy.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/deploy.sh b/bin/deploy.sh
index 4a5d451..4467cd0 100755
--- a/bin/deploy.sh
+++ b/bin/deploy.sh
@@ -1,9 +1,10 @@
#!/bin/bash
LOCALPATH=$1
DEPLOYPATH=`cat config/deploy-path`
+RSYNCOPTS='-urpP --delete --exclude=.menu.html'
if [ -s config/deploy-pass ]
then
- sshpass -f config/deploy-pass rsync -urpP --delete $LOCALPATH/ $DEPLOYPATH
+ sshpass -f config/deploy-pass rsync $RSYNCOPTS $LOCALPATH/ $DEPLOYPATH
else
- rsync -urpP --delete $LOCALPATH/ $DEPLOYPATH
+ rsync $RSYNCOPTS $LOCALPATH/ $DEPLOYPATH
fi