diff --git a/modules/git/functions/is-true b/modules/git/functions/is-true index e56f2bb..41d9fca 100644 --- a/modules/git/functions/is-true +++ b/modules/git/functions/is-true @@ -1,5 +1,3 @@ # Checks a boolean variable for "true". # Case insensitive: "1", "y", "yes", "t", "true", "o", and "on". -is-true() { - [[ -n "$1" && "$1" == (1|[Yy]([Ee][Ss]|)|[Tt]([Rr][Uu][Ee]|)|[Oo]([Nn]|)) ]] -} +[[ -n ${1} && ${1} == (1|[Yy]([Ee][Ss]|)|[Tt]([Rr][Uu][Ee]|)|[Oo]([Nn]|)) ]]