about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDave Collins <davec@conformal.com>2011-10-04 10:50:45 -0500
committerDave Collins <davec@conformal.com>2011-10-04 10:50:45 -0500
commitd9906bfdbd66919eb43edf4f6ce60385ca199097 (patch)
tree1933e89632dc57f6e4c5da915d789e58fb4ca975
parent6e5a84d74b23648c08faa925803a6210522ca82c (diff)
downloadxombrero-d9906bfdbd66919eb43edf4f6ce60385ca199097.tar.gz
Quote directory vars in buildver.sh
Prevent issues if somebody decides they want to use a directory
with spaces in it.
-rwxr-xr-xbuildver.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildver.sh b/buildver.sh
index 879bedc..27dfd89 100755
--- a/buildver.sh
+++ b/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