From: Steven Baltakatei Sandoval Date: Tue, 2 Nov 2021 22:41:09 +0000 (+0000) Subject: fix(u/bktemp-checkFlt):Update copypasta comments (int -> flt) X-Git-Tag: 0.5.0~32 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/0201a83dacb71cf75a8311ed69cc103441e2c969?ds=inline;hp=1eb63ec23b162c8f094e08bbb3706349389c1dd5 fix(u/bktemp-checkFlt):Update copypasta comments (int -> flt) --- diff --git a/unitproc/bktemp-checkFlt b/unitproc/bktemp-checkFlt index 530ff0e..affc94f 100644 --- a/unitproc/bktemp-checkFlt +++ b/unitproc/bktemp-checkFlt @@ -8,12 +8,12 @@ die() { yell "$*"; exit 111; } # same as yell() but non-zero exit status try() { "$@" || die "cannot $*"; } # runs args as command, reports args if command fails checkFlt() { # Desc: Checks if arg is a float - # Usage: checkInt arg + # Usage: checkFlt arg # Input: arg: float # Output: - return code 0 (if arg is float) # - return code 1 (if arg is not float) - # Example: if ! checkInt $arg; then echo "not flt"; fi; - # Version: 0.0.1 + # Example: if ! checkFlt $arg; then echo "not flt"; fi; + # Version: 0.0.2 # Depends: yell(), die(), bash 5.0.3 # Ref/Attrib: JDB https://stackoverflow.com/a/12643073 float regex local returnState @@ -36,7 +36,7 @@ checkFlt() { else return 1; fi; -} # Checks if arg is integer +} # Checks if arg is float #===END Declare local script functions=== #==END Define script parameters==