fix: missing if not condition in centos version check
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user