1
0
Fork 0
mirror of synced 2024-09-07 14:46:22 -04:00

Replace "$1" by ${1} in is-true function

to conform with the Zim code style guide.
This commit is contained in:
Eric Nielsen 2017-03-13 08:32:26 -05:00
parent f2ccc22531
commit a27d598e2e

View file

@ -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]|)) ]]