Accept yes/no for boolean environment variables (#2893)

This commit is contained in:
Kian Kasad
2024-06-13 07:46:16 -05:00
committed by GitHub
parent bc789202a1
commit cafb80eec3
+2 -2
View File
@@ -64,7 +64,7 @@ function getFilenameFromUrl() {
function isTrue() { function isTrue() {
case "${1,,}" in case "${1,,}" in
true | on | 1) true | yes | on | 1)
return 0 return 0
;; ;;
*) *)
@@ -75,7 +75,7 @@ function isTrue() {
function isFalse() { function isFalse() {
case "${1,,}" in case "${1,,}" in
false | off | 0) false | no | off | 0)
return 0 return 0
;; ;;
*) *)