summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdist1
-rwxr-xr-xinstall1
-rwxr-xr-xpublish1
-rwxr-xr-xtag1
-rwxr-xr-xtest1
5 files changed, 5 insertions, 0 deletions
diff --git a/dist b/dist
index e06e7c2..ad13a1f 100755
--- a/dist
+++ b/dist
@@ -11,6 +11,7 @@ usage="usage: $0 [-t]"
owd=`pwd`
trap "{ cd $owd; exit 1; }" ERR
+set -o errtrace # Trap in functions.
function info () { echo "$*" 1>&2; }
function error () { info "$*"; exit 1; }
diff --git a/install b/install
index aa9a6b1..9475c22 100755
--- a/install
+++ b/install
@@ -35,6 +35,7 @@ usage="usage: $0 [options] <build2-toolchain-archive> <build2-repo>"
owd=`pwd`
trap "{ cd $owd; exit 1; }" ERR
+set -o errtrace # Trap in functions.
function info () { echo "$*" 1>&2; }
function error () { info "$*"; exit 1; }
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; }
diff --git a/tag b/tag
index f30a616..be7f3e4 100755
--- a/tag
+++ b/tag
@@ -11,6 +11,7 @@ usage="usage: $0 [-t]"
owd=`pwd`
trap "{ cd $owd; exit 1; }" ERR
+set -o errtrace # Trap in functions.
function info () { echo "$*" 1>&2; }
function error () { info "$*"; exit 1; }
diff --git a/test b/test
index 8300c27..61db258 100755
--- a/test
+++ b/test
@@ -8,6 +8,7 @@ usage="usage: $0"
owd=`pwd`
trap "{ cd $owd; exit 1; }" ERR
+set -o errtrace # Trap in functions.
function info () { echo "$*" 1>&2; }
function error () { info "$*"; exit 1; }