From d4eb6d8d7dd8788f30a50ddc0624ca395940530d Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 5 May 2017 10:23:23 +0000 Subject: [PATCH] Bug 18548: Print usage when missing instance name in koha-create script Test plan: 1. Run: debian/scripts/koha-create --request-db -> Without patch you see the getent error message -> With patch you see usage and "Missing instance name" message --- debian/scripts/koha-create | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index b21e472..291715f 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -552,6 +552,10 @@ set_authorities_indexing_mode $AUTHORITIES_INDEXING_MODE $ZEBRA_MARC_FORMAT name="$1" +if [ "$name" = "" ]; then + usage ; die "Missing instance name" +fi + set_upload_path $name if [ "$USE_MEMCACHED" = "yes" ]; then -- 2.1.4