Added branch as an optional argument
This commit is contained in:
parent
8a43d18a14
commit
abe0a60c0c
1 changed files with 9 additions and 1 deletions
10
bash/deploy
10
bash/deploy
|
@ -1,2 +1,10 @@
|
|||
#!/bin/bash
|
||||
/usr/bin/ssh -p9455 josh@aurora "cd /var/www/$1; git pull origin master"
|
||||
|
||||
if [[ -z "$2" ]];
|
||||
then
|
||||
BRANCH=master
|
||||
else
|
||||
BRANCH=$2
|
||||
fi
|
||||
|
||||
/usr/bin/ssh -p9455 josh@aurora "cd /var/www/$1; git pull origin $BRANCH"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue