X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/0cef41dde7ed3fc3df48a8fb84e824faa405ce49..ccf85e7b74070d40af992d587210f61149f4360f:/unitproc/bktemp-checkMakeTar diff --git a/unitproc/bktemp-checkMakeTar b/unitproc/bktemp-checkMakeTar index 147d21e..288a000 100644 --- a/unitproc/bktemp-checkMakeTar +++ b/unitproc/bktemp-checkMakeTar @@ -2,16 +2,14 @@ # Desc: Checks that a valid tar archive exists, creates one otherwise - +#===BEGIN Declare local script functions=== yell() { echo "$0: $*" >&2; } #o Yell, Die, Try Three-Fingered Claw technique die() { yell "$*"; exit 111; } #o Ref/Attrib: https://stackoverflow.com/a/25515370 try() { "$@" || die "cannot $*"; } #o - -#===BEGIN Declare local script functions=== checkMakeTar() { # Desc: Checks that a valid tar archive exists, creates one otherwise # Usage: checkMakeTar [ path ] - # Version: 1.0.0 + # Version: 1.0.1 # Input: arg1: path of tar archive # Output: exit code 0 : tar readable # exit code 1 : tar missing; created