From: Liviu Ionescu Date: Tue, 29 May 2012 16:41:02 +0000 (+0300) Subject: tools: initial.sh fixed to accept spaces in current path X-Git-Tag: v0.6.0-rc1~56 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=a21affa42906f55311ec047782a427fcbcb98994;hp=1b2cb095bae87f02250cd487b71e0a3d0f1ecb74;ds=sidebyside tools: initial.sh fixed to accept spaces in current path 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 Reviewed-on: http://openocd.zylin.com/683 Tested-by: jenkins Reviewed-by: Peter Stuge --- diff --git a/tools/initial.sh b/tools/initial.sh index 9caba5a4a1..9580c9a9c4 100755 --- a/tools/initial.sh +++ b/tools/initial.sh @@ -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"