]> zdv2.bktei.com Git - BK-2020-03.git/blobdiff - unitproc/bkt-yellDieMust
feat(user/ping_offline.sh):Add timestamps before each ping line
[BK-2020-03.git] / unitproc / bkt-yellDieMust
index 5d604ba02c92a3c29fe9ba92bb2be54e0a6a7a99..84a8fec65642feb856044a130f2e9c26b4a33f0f 100644 (file)
@@ -4,7 +4,7 @@
 # Note: All three functions should be added together if used at all.
 # Ref/Attrib: [1] Yell, Die, Try Three-Fingered Claw technique https://stackoverflow.com/a/25515370
 # Depends: GNU Coreutils 8.30
 # Note: All three functions should be added together if used at all.
 # Ref/Attrib: [1] Yell, Die, Try Three-Fingered Claw technique https://stackoverflow.com/a/25515370
 # Depends: GNU Coreutils 8.30
-# Version 1.0.0
+# Version 1.0.1
 
 #==BEGIN Define script parameters==
 #==END Define script parameters==
 
 #==BEGIN Define script parameters==
 #==END Define script parameters==
@@ -12,6 +12,7 @@
 #===BEGIN Declare local script functions===
 yell() { echo "$0: $*" >&2; } # print script path and all args to stderr
 die() { yell "$*"; exit 111; } # same as yell() but non-zero exit status
 #===BEGIN Declare local script functions===
 yell() { echo "$0: $*" >&2; } # print script path and all args to stderr
 die() { yell "$*"; exit 111; } # same as yell() but non-zero exit status
+dief() { yell "$*"; return 111; } # same as die() but meant for functions to avoid exiting main shell
 must() { "$@" || die "cannot $*"; } # runs args as command, reports args if command fails
 #===END Declare local script functions===
 
 must() { "$@" || die "cannot $*"; } # runs args as command, reports args if command fails
 #===END Declare local script functions===