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/chroot-tools/librechroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chroot-tools/librechroot') diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 3ac5380..a2394d7 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -137,7 +137,7 @@ main() { esac done shift $(($OPTIND - 1)) - if [[ $# < 1 ]]; then + if [[ $# -lt 1 ]]; then error "Must specify a command" usage >/dev/stderr return 1 -- cgit v1.2.2