Skip to content

Commit

Permalink
tools: initial.sh fixed to accept spaces in current path
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-on: http://openocd.zylin.com/683
Tested-by: jenkins
Reviewed-by: Peter Stuge <[email protected]>
  • Loading branch information
ilg-ul authored and Peter Stuge committed May 29, 2012
1 parent 1b2cb09 commit a21affa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/initial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a21affa

Please sign in to comment.