Bug 10101 - Follwup: fix param check

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

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Tomás Cohen Arazi 2013-04-29 15:18:17 -03:00 committed by Jared Camins-Esakov
parent 3bca90eb0c
commit 7d09198659

View file

@ -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"