X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/b13c9582990cf2e8c492c70b176903fd8ba97084..61b9303c77834c5504b25175d159546ace49a9a4:/unitproc/bktemp-checkMakeTar diff --git a/unitproc/bktemp-checkMakeTar b/unitproc/bktemp-checkMakeTar index bde07d8..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 @@ -68,3 +66,6 @@ else ls -l "$myFile"; fi #====END sample code==== + +# Author: Steven Baltakatei Sandoval +# License: GPLv3+