better hpublish

This commit is contained in:
Yann Esposito (Yogsototh) 2010-10-07 00:47:37 +02:00
parent 485b5dec2d
commit e2ad381c83

View file

@ -2,7 +2,10 @@
if [[ $HOST = "YiMac.local" ]]; then
cd $HOME/Sites/webroot
git pull
git co master
[[ ! $? ]] && { exit 1 }
git pull
[[ ! $? ]] && { exit 1 }
./tasks/recompile
if git status | grep 'nothing to commit'>/dev/null 2>&1; then
else