diff options
Diffstat (limited to 'ship/lib/core')
-rw-r--r-- | ship/lib/core | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ship/lib/core b/ship/lib/core index 5df146a1..7c5cbf46 100644 --- a/ship/lib/core +++ b/ship/lib/core @@ -2,7 +2,11 @@ msg() { echo "$*" >&2; } info() { msg "** $*"; } error() { msg "!! $*"; } -die() { error "$*"; exit 1; } +die() { + error "$*" + error 'Bailing out.' + exit 1 +} exists(){ type "$1" >/dev/null 2>/dev/null; } is_root(){ test $(id -u) -eq 0 |