From: Richard Hartmann Date: Wed, 22 Oct 2014 22:02:11 +0000 (+0200) Subject: vcsh: Make fatal() default to `exit 1` X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/5432ea130bd5920174376299864988fad0e816cf?ds=inline;pf=code vcsh: Make fatal() default to `exit 1` --- diff --git a/vcsh b/vcsh index 0b4c452..ea74835 100755 --- a/vcsh +++ b/vcsh @@ -24,6 +24,7 @@ SELF=$(basename $0) fatal() { echo "$SELF: fatal: $1" >&2 + [ -z $2] && exit 1 exit $2 }