Bug 19546: (QA follow-up) Make the returning cd more fool proof
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 5 Mar 2018 09:27:33 +0000 (10:27 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 15 Mar 2018 08:29:23 +0000 (08:29 +0000)
Trivial and hypothetical fix.
If you create /root/AA B (space in dirname), the quotes added here will
help you to get back where you came from.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

debian/scripts/koha-plack

index f31dadb..1677ee0 100755 (executable)
@@ -121,7 +121,7 @@ start_plack()
             log_end_msg 1
         fi
         # Go back to the original dir
-        cd $current_dir
+        cd "$current_dir"
 
     else
         log_daemon_msg "Error: Plack already running for ${instancename}"