summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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 ec0d4ec..4a5d451 100755
--- a/bin/deploy.sh
+++ b/bin/deploy.sh
@@ -1,8 +1,9 @@
#!/bin/bash
+LOCALPATH=$1
DEPLOYPATH=`cat config/deploy-path`
if [ -s config/deploy-pass ]
then
- sshpass -f config/deploy-pass rsync -urpP --delete http/ $DEPLOYPATH
+ sshpass -f config/deploy-pass rsync -urpP --delete $LOCALPATH/ $DEPLOYPATH
else
- rsync -urpP --delete http/ $DEPLOYPATH
+ rsync -urpP --delete $LOCALPATH/ $DEPLOYPATH
fi