Fixed bug causing isTrue to fail (#1727)

This commit is contained in:
Geoff Bourne
2022-09-10 14:39:44 -05:00
committed by GitHub
parent fabe14db49
commit a1e4657e62
2 changed files with 11 additions and 10 deletions

View File

@@ -63,8 +63,7 @@ function getFilenameFromUrl() {
}
function isTrue() {
local arg="${1?}"
case ${arg,,} in
case "${1,,}" in
true | on | 1)
return 0
;;
@@ -75,8 +74,7 @@ function isTrue() {
}
function isFalse() {
local arg="${1?}"
case ${arg,,} in
case "${1,,}" in
false | off | 0)
return 0
;;