Merge pull request #152 from ronivay/fix/centos-support

fix: missing if not condition in centos version check
This commit is contained in:
Roni Väyrynen
2022-10-16 12:30:53 +03:00
committed by GitHub

View File

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