echo a reminder to change shell to zsh

This commit is contained in:
Sami Samhuri 2010-08-11 11:58:03 -07:00
parent fee6b64675
commit 7cb5d54e08

14
publish Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
bail() {
echo fail: $*
exit 1
}
while ! [[ -f .publish ]]; do
[[ "$PWD" = "/" ]] && bail "no .publish file found"
cd ..
done
source .publish
scp -r $1 $PUBLISH_HOST:$PUBLISH_DIR