Hired an ol' salty dog to run the ship

This commit is contained in:
Josh Sherman 2014-12-05 11:17:41 -05:00
parent d68ae6cd72
commit c64eb7e583

5
ship
View file

@ -5,7 +5,7 @@ case $# in
# TODO go up the hierarchy to find .ship
source .ship
ssh $SERVER "
ssh captain@$SERVER "
cd $DESTINATION
git pull origin master
"
@ -18,14 +18,13 @@ case $# in
DESTINATION=$3
CLONEURL=`git config --get remote.origin.url`
ssh $SERVER "
ssh captain@$SERVER "
if [ -a $DESTINATION ]
then
echo "Error: Destination exists"
exit 1
else
git clone $CLONEURL $DESTINATION
chgrp ship -R $DESTINATION
fi
"