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 <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2018-03-05 11:30:15 +01:00 committed by Nick Clemens
parent 37750b2f20
commit 7c55ea5917
1 changed files with 2 additions and 2 deletions

View File

@ -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