From beae9b3e2822021fea741fc98282cf9e0fc1d024 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 5 Jun 2013 19:36:55 -0600 Subject: Double bracket ==/ compare lexicographically, not numerically. Unfortunately for me, that means that it works correctly *most* of the time. But, for example, [[ 10 < 2 ]], and negatives don't work. --- src/lib/conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/conf.sh') diff --git a/src/lib/conf.sh b/src/lib/conf.sh index 3ec8a8d..67aeb96 100644 --- a/src/lib/conf.sh +++ b/src/lib/conf.sh @@ -114,7 +114,7 @@ check_vars() { local VAR for VAR in "$@"; do if [[ -z ${!VAR:-} ]]; then - if [[ $(list_files $slug|wc -l) > 1 ]]; then + if [[ $(list_files $slug|wc -l) -gt 1 ]]; then echo "Configure '$VAR' in one of:" list_files $slug | sed 's/./ -> &/' else -- cgit v1.2.3-54-g00ecf