Skip to content
Snippets Groups Projects
Commit 982955a3 authored by Raymond Toy's avatar Raymond Toy
Browse files

Print error message and exit with DEFAULT_VERSION not set

If we can't determine a version name for DEFAULT_VERSION, print an
error message and quit (with an error).
parent 3a2cc37d
No related tags found
1 merge request!309Make dist tarballs after building
Pipeline #12702 passed
......@@ -46,6 +46,11 @@ else
# The git hash looks like a release which is 3 hex digits. Use it as is.
DEFAULT_VERSION="${GIT_HASH}"
fi
if [ -z "$DEFAULT_VERSION" ]; then
echo "Unable to determine a default version from hash $GIT_HASH"
exit 1;
fi
fi
if [ -z "$FILE" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment