Replace "$1" by ${1} in is-true function
to conform with the Zim code style guide.
This commit is contained in:
parent
f2ccc22531
commit
a27d598e2e
|
@ -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]|)) ]]
|
||||
|
|
Loading…
Reference in a new issue