scratch/tasks/hpublish
Yann Esposito (Yogsototh) 77b32529e7 fixed some shell mistakes
2010-10-10 21:26:38 +02:00

17 lines
406 B
Bash
Executable file

#!/usr/bin/env zsh
if [[ $HOST = "YiMac.local" ]]; then
cd $HOME/Sites/webroot
git co master
(( $? == 0 )) || { exit 1 }
git pull
(( $? == 0 )) || { exit 1 }
./tasks/recompile
if git status | grep 'nothing to commit'>/dev/null 2>&1; then
else
git commit -a -m "regeneration"
fi
git push heroku master
else
ssh yimac ./Sites/webroot/tasks/hpublish
fi