summaryrefslogtreecommitdiff
path: root/publish
diff options
context:
space:
mode:
Diffstat (limited to 'publish')
-rwxr-xr-xpublish1
1 files changed, 1 insertions, 0 deletions
diff --git a/publish b/publish
index d6baff2..6bc6621 100755
--- a/publish
+++ b/publish
@@ -8,6 +8,7 @@ usage="$0 [<rsync-options>]"
owd=`pwd`
trap "{ cd $owd; exit 1; }" ERR
+set -o errtrace # Trap in functions.
function info () { echo "$*" 1>&2; }
function error () { info "$*"; exit 1; }