updating forgeapi tests and adding is false (#1548)

Co-authored-by: christopher blodgett <christopher.blodgett@gmail.com>
This commit is contained in:
chblodgandchristopher blodgett authored and GitHub committed 2022-06-05 15:16:12 -05:00
1 parent 1fb04c069c
commit 4f9de809f8
8 files changed
+46 -21

No files matched your search

+22
View File
@@ -66,6 +66,28 @@ function isTrue() {
return ${result}
}
function isFalse() {
local oldState
oldState=$(shopt -po xtrace)
shopt -u -o xtrace
local value=${1,,}
result=
case ${value} in
false | off)
result=0
;;
*)
result=1
;;
esac
eval "$oldState"
return ${result}
}
function isDebugging() {
if isTrue "${DEBUG:-false}"; then
return 0