]> git.sur5r.net Git - openocd/commitdiff
tools: initial.sh fixed to accept spaces in current path
authorLiviu Ionescu <ilg@livius.net>
Tue, 29 May 2012 16:41:02 +0000 (19:41 +0300)
committerPeter Stuge <peter@stuge.se>
Tue, 29 May 2012 19:10:06 +0000 (19:10 +0000)
When changing the path to the hooks folder, the path needs to be
surrounded by quotation marks, to avoid failures when the current
path contains spaces (not only legal, but a common case on
Mac OS X).

Change-Id: I8f180ab5f26fab00a7d78ebfe5713d4146c27452
Signed-off-by: Liviu Ionescu <ilg@livius.net>
Reviewed-on: http://openocd.zylin.com/683
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se>
tools/initial.sh

index 9caba5a4a124619d1b7dbbdfe371c7ff66142aae..9580c9a9c481efdaf0e90e40bd744bbd81dc26bd 100755 (executable)
@@ -20,7 +20,7 @@ add_remote()
 
 update_commit_msg()
 {
-       cd ${TOPDIR}/.git/hooks
+       cd "${TOPDIR}/.git/hooks"
        save_file=commit-msg-`date +%F-%T`
        mv commit-msg $save_file
        printf "%-30s"  "Updating commit-msg"