@@ -, +, @@ [ "chdir" != "no" ] --- debian/scripts/koha-foreach | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/debian/scripts/koha-foreach +++ a/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 --