Update xo-install.sh to support rocky linux 9

This commit is contained in:
jsargent
2022-08-08 22:52:43 -07:00
committed by GitHub
parent d0750206c2
commit 4b97e020c9

View File

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