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

Signed-off-by: Dilan Johnpulle <dilan@calyx.net.au>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d2ed4fadc5)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
Josef Moravec 2017-05-05 10:23:23 +00:00 committed by Katrin Fischer
parent 8ebbefed73
commit 873aca09ae
1 changed files with 2 additions and 0 deletions

View File

@ -550,6 +550,8 @@ fi
set_authorities_indexing_mode $AUTHORITIES_INDEXING_MODE $ZEBRA_MARC_FORMAT
[ $# -ge 1 ] || ( usage ; die "Missing instance name..." )
name="$1"
set_upload_path $name