Browse Source

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>
tags/v0.6.0-rc1
Liviu Ionescu 9 years ago
committed by Peter Stuge
parent
commit
a21affa429
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tools/initial.sh

+ 1
- 1
tools/initial.sh View File

@@ -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"


Loading…
Cancel
Save