Use double quoting in get_version.sh
o9000 mrovi9000@gmail.com
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
get_version.sh
→
get_version.sh
@@ -34,7 +34,7 @@ fi
VERSION=$(git describe --exact-match 2>/dev/null || echo "$MAJOR-git$(git show -s --pretty=format:%ci | cut -d ' ' -f 1 | tr -d '-').$(git show -s --pretty=format:%h)")$DIRTY else VERSION=$(head -n 1 ChangeLog || head -n 1 ../ChangeLog | cut -d ' ' -f 2) - if [ $VERSION = "master" ] + if [ "$VERSION" = "master" ] then VERSION=$VERSION-$(head -n 1 ChangeLog || head -n 1 ../ChangeLog | cut -d ' ' -f 1) fi