mirror of https://github.com/k3s-io/k3s
Merge pull request #1322 from erikwilson/metadata-dot-test
Check versions for dot in metadatapull/1325/head
commit
39dbfc5f5a
|
@ -98,7 +98,9 @@ export -f wait-for-db-connection
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
verify-valid-version() {
|
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
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue