diff options
Diffstat (limited to 'buildver.sh')
-rwxr-xr-x | buildver.sh | 4 |
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 |