about summary refs log tree commit diff stats
path: root/buildver.sh
diff options
context:
space:
mode:
Diffstat (limited to 'buildver.sh')
-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