From b4a3ae127f891d0b5e0376042a1ce2ede728370b Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@gmail.com>
Date: Mon, 29 Apr 2013 15:18:17 -0300
Subject: [PATCH] Bug 10101 - Follwup: fix param check
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

As Mason noted, there was an error on that line.

Sponsored-by: Universidad Nacional de Córdoba
---
 debian/scripts/koha-enable |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/debian/scripts/koha-enable b/debian/scripts/koha-enable
index 01c2a85..c0bbfa2 100755
--- a/debian/scripts/koha-enable
+++ b/debian/scripts/koha-enable
@@ -72,8 +72,20 @@ enable_instance()
         return 1
     fi
 }
+
+usage()
+{
+    local scriptname=$0
+    cat <<EOF
+Enables Koha instances.
+
+Usage: $scriptname instancename1 instancename2...
+
+EOF
+}
+
 # Parse command line.
-[ "$#" > 1 ] || die "Usage: $0 instancename..."
+[ $# -ge 1 ] || ( usage ; die "Missing instance name..." )
 
 restart_apache="no"
 
-- 
1.7.9.5