aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLiviu Ionescu <ilg@livius.net>2012-05-29 19:41:02 +0300
committerPeter Stuge <peter@stuge.se>2012-05-29 19:10:06 +0000
commita21affa42906f55311ec047782a427fcbcb98994 (patch)
treebd30a42c88049a43cffdcea94db7c362e904f0c4 /tools
parent1b2cb095bae87f02250cd487b71e0a3d0f1ecb74 (diff)
downloadriscv-openocd-a21affa42906f55311ec047782a427fcbcb98994.zip
riscv-openocd-a21affa42906f55311ec047782a427fcbcb98994.tar.gz
riscv-openocd-a21affa42906f55311ec047782a427fcbcb98994.tar.bz2
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 <ilg@livius.net> Reviewed-on: http://openocd.zylin.com/683 Tested-by: jenkins Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/initial.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/initial.sh b/tools/initial.sh
index 9caba5a..9580c9a 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"