diff options
author | Dave Collins <davec@conformal.com> | 2011-10-04 10:50:45 -0500 |
---|---|---|
committer | Dave Collins <davec@conformal.com> | 2011-10-04 10:50:45 -0500 |
commit | d9906bfdbd66919eb43edf4f6ce60385ca199097 (patch) | |
tree | 1933e89632dc57f6e4c5da915d789e58fb4ca975 | |
parent | 6e5a84d74b23648c08faa925803a6210522ca82c (diff) | |
download | xombrero-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-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 |