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