version: updated bash script
#!/bin/bash
-version=`git log --date=iso --pretty=format:"%cd @%H @" -1 && git describe --tag`
+version=`git log --date=iso --pretty=format:"%cd @%H" -1`
if [ $? -ne 0 ]; then
version="unknown version"
fi
@@ -10,6 +10,11 @@ if [ $? -ne 0 ]; then
compile="unknown datetime"
fi
+describe=`git describe --tags 2>/dev/null`
+if [ $? -eq 0 ]; then
+ version="${version} @${describe}"
+fi
+
cat << EOF | gofmt > pkg/utils/version.go
package utils
