Skip to content
Permalink
Browse files

Quote directory vars in buildver.sh

Prevent issues if somebody decides they want to use a directory
with spaces in it.
  • Loading branch information...
davecgh committed Oct 4, 2011
1 parent 6e5a84d commit d9906bfdbd66919eb43edf4f6ce60385ca199097
Showing with 2 additions and 2 deletions.
  1. +2 −2 buildver.sh
@@ -1,7 +1,7 @@
#!/bin/sh

CURDIR=$(dirname $0)
if [ -d $CURDIR/.git ]; then
cd $CURDIR
if [ -d "$CURDIR/.git" ]; then
cd "$CURDIR"
git describe --tags | tr -d '\n'
fi

0 comments on commit d9906bf

Please sign in to comment.
You can’t perform that action at this time.