From d4e444a01db991f54a771bbca1e689f959ac066c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 5 Mar 2018 11:30:15 +0100 Subject: [PATCH] Bug 17717: (QA follow-up) Fix typo chdir This test does obviously not achieve the desired result: [ "chdir" != "no" ] Trivial fix. Adding the same quotes around starting_dir (just as for Bug 19546). Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- debian/scripts/koha-foreach | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/scripts/koha-foreach b/debian/scripts/koha-foreach index 47f92c5973..9682f14b85 100755 --- a/debian/scripts/koha-foreach +++ b/debian/scripts/koha-foreach @@ -59,11 +59,11 @@ do if [ "${cmd}" != "" ]; then # Change to the instance's home dir if required - [ "chdir" != "no" ] && eval cd ~$name"-koha" + [ "$chdir" != "no" ] && eval cd ~$name"-koha" koha-shell ${name} -c "${cmd}" # Go back to the original dir if required - [ "chdir" != "no" ] && cd $starting_dir + [ "$chdir" != "no" ] && cd "$starting_dir" fi done -- 2.20.1