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>
This commit is contained in:
parent
e609679eb2
commit
d2ed4fadc5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue