Commit 8c897be8 authored by Patrik Dufresne's avatar Patrik Dufresne

Check if git executable is available on PATH

parent b470cd54
Pipeline #139192456 passed with stages
in 40 seconds
...@@ -30,6 +30,10 @@ increment_version () ...@@ -30,6 +30,10 @@ increment_version ()
new="${part[*]}" new="${part[*]}"
echo -e "${new// /.}" echo -e "${new// /.}"
} }
if ! type git > /dev/null; then
echo "git executable can't be found!"
exit 1
fi
DESCRIBE=$(git describe --dirty --tags --long --match "*.*" 2>/dev/null || true) DESCRIBE=$(git describe --dirty --tags --long --match "*.*" 2>/dev/null || true)
if [ -z "$DESCRIBE" ]; then if [ -z "$DESCRIBE" ]; then
TAG="0.0.0" TAG="0.0.0"
......
Markdown is supported
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