From a27d598e2e78c6e37e45da3b3d0f5371558d81d6 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Mon, 13 Mar 2017 08:32:26 -0500 Subject: [PATCH] Replace "$1" by ${1} in is-true function to conform with the Zim code style guide. --- modules/git/functions/is-true | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git/functions/is-true b/modules/git/functions/is-true index 5b0baed..41d9fca 100644 --- a/modules/git/functions/is-true +++ b/modules/git/functions/is-true @@ -1,3 +1,3 @@ # Checks a boolean variable for "true". # Case insensitive: "1", "y", "yes", "t", "true", "o", and "on". -[[ -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]|)) ]]