From cafb80eec32b9c693353d35257d4a09b728e1a86 Mon Sep 17 00:00:00 2001 From: Kian Kasad Date: Thu, 13 Jun 2024 05:46:16 -0700 Subject: [PATCH] Accept yes/no for boolean environment variables (#2893) --- scripts/start-utils | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/start-utils b/scripts/start-utils index d64f1c1f..a9d37c8a 100755 --- a/scripts/start-utils +++ b/scripts/start-utils @@ -64,7 +64,7 @@ function getFilenameFromUrl() { function isTrue() { case "${1,,}" in - true | on | 1) + true | yes | on | 1) return 0 ;; *) @@ -75,7 +75,7 @@ function isTrue() { function isFalse() { case "${1,,}" in - false | off | 0) + false | no | off | 0) return 0 ;; *) @@ -345,4 +345,4 @@ function ensureRemoveAllModsOff() { log "WARNING using REMOVE_OLDS_MODS interferes with $reason -- it is now disabled" REMOVE_OLD_MODS=false fi -} \ No newline at end of file +}