diff options
Diffstat (limited to 'test/scripts/test-utils.sh')
| -rwxr-xr-x | test/scripts/test-utils.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scripts/test-utils.sh b/test/scripts/test-utils.sh index 8fe1c6e5fc..d5f12489ea 100755 --- a/test/scripts/test-utils.sh +++ b/test/scripts/test-utils.sh @@ -46,7 +46,8 @@ commit=${commit:0:6} TAG=$(git describe --exact-match HEAD 2>/dev/null || echo "") if [[ -n "$TAG" && ${CURRENT_VERSION} =~ -dev- ]]; then - CURRENT_VERSION+="+${TAG}" + # Remove disallowed version characters from the tag + CURRENT_VERSION+="+${TAG//[^0-9a-z_-]/}" fi export CURRENT_VERSION |
