Commit 22a0d67c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files Make it work in case no git tag is present.

parent 6b344d78
git_tag="$(git describe --dirty || echo unknown)"
# Note: git describe doesn't work if no tag is available
git_tag="$(git describe --dirty 2> /dev/null || git rev-parse --short HEAD)"
git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)"
# Check if there are any modified files.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment