From f95180c8b5c50aa0a6a800f2c795d58d23bc1bc2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 2 Apr 2009 21:29:24 +0200 Subject: pkg: debug: use math expansion --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pkg b/bin/pkg index 91a6f3a..d96698e 100755 --- a/bin/pkg +++ b/bin/pkg @@ -27,7 +27,7 @@ c_reset=$'\e[0m' function debug { typeset func line - if [[ ${#*} -ge 3 ]] { + if (( ${#*} >= 3 )) { func=$1 line=$2 shift 2 -- cgit v1.2.3