fix: missing if not condition in centos version check

This commit is contained in:
Roni Väyrynen
2022-10-16 12:30:06 +03:00
parent 8d32e38dfc
commit da60af07ab

View File

@@ -1263,7 +1263,7 @@ function CheckOS {
exit 1
fi
if [[ "$OSNAME" == "CentOS" ]] && [[ "$OSVERSION" =~ ^(8|9)$ ]]; then
if [[ "$OSNAME" == "CentOS" ]] && [[ ! "$OSVERSION" =~ ^(8|9)$ ]]; then
printfail "Only CentOS 8/9 supported"
exit 1
fi