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/abslibre-tools/librestage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/abslibre-tools/librestage') diff --git a/src/abslibre-tools/librestage b/src/abslibre-tools/librestage index 0cb7a27..e209beb 100755 --- a/src/abslibre-tools/librestage +++ b/src/abslibre-tools/librestage @@ -47,7 +47,7 @@ main() { esac done repos=("$@") - if [[ ${#repos[@]} == 0 ]]; then + if [[ ${#repos[@]} -eq 0 ]]; then usage >>/dev/stderr return 1; fi -- cgit v1.2.3-54-g00ecf