Bug 6540 - Followup - koha-create would die without --configfile
koha-create would fail to check that --configfile was set on the
commandline, before either including it if it existed or dying if
it did not. This patch should make sure the existence of a
configfile is only tested if --config is set.
Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
This should apply against 3.4 and master.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 31bb901e2b)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
85f4ca591e
commit
862df3d846
|
|
@ -112,11 +112,14 @@ while true ; do
|
|||
done
|
||||
|
||||
# Load the configfile given on the command line
|
||||
if [ -e "$configfile" ]
|
||||
if [ "$configfile" != "" ]
|
||||
then
|
||||
. "$configfile"
|
||||
else
|
||||
die "$configfile does not exist.";
|
||||
if [ -e "$configfile" ]
|
||||
then
|
||||
. "$configfile"
|
||||
else
|
||||
die "$configfile does not exist.";
|
||||
fi
|
||||
fi
|
||||
|
||||
# Make sure options from the command line get the highest precedence
|
||||
|
|
|
|||
Loading…
Reference in New Issue