Add almalinux 9 to the checks

This commit is contained in:
Michael Rook
2022-06-06 21:29:39 +10:00
parent c2d0445f2f
commit 4b63373ccc
2 changed files with 3 additions and 2 deletions

View File

@@ -1266,8 +1266,8 @@ function CheckOS {
fi
# for future if/when something above 8 is released
if [[ "$OSNAME" == "AlmaLinux" ]] && [[ "$OSVERSION" != "8" ]]; then
printfail "Only AlmaLinux 8 supported"
if [[ "$OSNAME" == "AlmaLinux" ]] && [[ "$OSVERSION" =~ ^(8|9)$ ]]; then
printfail "Only AlmaLinux 8/9 supported"
exit 1
fi