qb: Update the die function.

This commit is contained in:
orbea 2019-10-15 19:27:36 -07:00
parent 615c581cd2
commit d0442f4468
1 changed files with 4 additions and 3 deletions

View File

@ -7,11 +7,12 @@
die() die()
{ ret="$1" { ret="$1"
shift 1 shift 1
printf %s\\n "$@" >&2
case "$ret" in case "$ret" in
: ) return 0 ;; : ) printf %s\\n "$@" >&2; return 0 ;;
* ) exit "$ret" ;; 0 ) printf %s\\n "$@" ;;
* ) printf %s\\n "$@" >&2 ;;
esac esac
exit "$ret"
} }
# exists: # exists: