diff options
Diffstat (limited to 'ship')
-rw-r--r-- | ship/lib/core | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ship/lib/core b/ship/lib/core index 7c5cbf46..d6e01352 100644 --- a/ship/lib/core +++ b/ship/lib/core @@ -2,8 +2,9 @@ msg() { echo "$*" >&2; } info() { msg "** $*"; } error() { msg "!! $*"; } +## usage: die [REASON...] die() { - error "$*" + test $# -gt 0 && error "$*" error 'Bailing out.' exit 1 } |