Check if the instance does not exist (or was not even passed).
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
# corresponding tag in koha-conf.xml
local instancename=$1
- local dev_install=$(run_safe_xmlstarlet $instancename dev_install)
+ local dev_install=""
+
+ if [ "$instancename" != "" ] && is_instance $instancename; then
+ dev_install=$(run_safe_xmlstarlet $instancename dev_install)
+ fi
if [ "$dev_install" != "" ] && [ "$dev_install" != "0" ]; then
DEV_INSTALL=1