Check versions for dot in metadata

pull/1322/head
Erik Wilson 2020-01-20 16:01:04 -07:00
parent 1b23c891dd
commit 7d9bdaee23
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ export -f wait-for-db-connection
# ---
verify-valid-version() {
if docker exec $@ 2>&1 | grep -iE '(dev|head|unknown|fail|refuse)'; then
docker exec $@ 2>&1 | tee .version.tmp
# check for bad strings in the version output, including '.' in the build metadata
if grep -oiE '.*(dev|head|unknown|fail|refuse|\+[^"]*\.).*' .version.tmp; then
return 1
fi
}