Merge pull request #9601 from orbea/qb_die

qb: Update the die function.
This commit is contained in:
Twinaphex 2019-10-16 15:08:17 +02:00 committed by GitHub
commit e34fdedfb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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