From 7cb5d54e081e94c1a221ea9b4b382581e638de7c Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 11 Aug 2010 11:58:03 -0700 Subject: [PATCH] echo a reminder to change shell to zsh --- publish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 publish diff --git a/publish b/publish new file mode 100755 index 0000000..4c50d25 --- /dev/null +++ b/publish @@ -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