Renamed check-bool to is-true.

This commit is contained in:
Sorin Ionescu 2012-01-20 22:03:17 -05:00
commit b2fcfc684c
5 changed files with 7 additions and 7 deletions

View file

@ -4,7 +4,7 @@ function autoloadable() {
}
# Checks boolean variable for "true" (case insensitive "1", "y", "yes", "t", "true", "o", and "on").
function check-bool() {
function is-true() {
[[ -n "$1" && "$1" == (1|[Yy]([Ee][Ss]|)|[Tt]([Rr][Uu][Ee]|)|[Oo]([Nn]|)) ]]
}