From c7b2232378af5955e6cd59bc23711c3cebe75720 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Thu, 9 Mar 2017 10:53:43 -0500 Subject: [PATCH] Inline is-true function body, as other functions defined in Zim. Instead of creating an additional `is-true() { }` function scope. Closes #148 --- modules/git/functions/is-true | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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]|)) ]]