From 70e709393db743b3c722b0c574adface1787e98f 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 Check if the instance does not exist (or was not even passed). Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- 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 1fdfe83378..256ae2b700 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.39.5