Updated to sniff out branch
This commit is contained in:
parent
abe0a60c0c
commit
8f0d122fc6
1 changed files with 1 additions and 9 deletions
10
bash/deploy
10
bash/deploy
|
@ -1,10 +1,2 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -z "$2" ]];
|
||||
then
|
||||
BRANCH=master
|
||||
else
|
||||
BRANCH=$2
|
||||
fi
|
||||
|
||||
/usr/bin/ssh -p9455 josh@aurora "cd /var/www/$1; git pull origin $BRANCH"
|
||||
/usr/bin/ssh -p9455 josh@aurora "cd /var/www/$1; git rev-parse --abbrev-ref HEAD | xargs git pull origin"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue