lower case
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ readonly MIAOU_BASH_ERROR MIAOU_BASH_DEBUG
|
||||
# FUNCTIONS
|
||||
|
||||
function is_true {
|
||||
[[ "${1,,}" =~ ^(true|yes|1)$ ]]
|
||||
[[ "${1,,}" =~ ^(true|yes|1)$ ]] #${1,,} => Lowercase all chars
|
||||
}
|
||||
|
||||
# overridden function which permits backtracing of original `return` statement
|
||||
|
||||
Reference in New Issue
Block a user