From f32c56b82f67241af31ab16779cfc1f63daa1185 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 16 Feb 2017 14:33:57 +0100 Subject: [PATCH] Bug 16749: Check instancename in adjust_paths_dev_install Content-Type: text/plain; charset=utf-8 Check if the instance does not exist (or was not even passed). --- debian/scripts/koha-functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/scripts/koha-functions.sh b/debian/scripts/koha-functions.sh index 1fdfe83..256ae2b 100755 --- a/debian/scripts/koha-functions.sh +++ b/debian/scripts/koha-functions.sh @@ -222,7 +222,11 @@ adjust_paths_dev_install() # 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 -- 2.1.4