fix os release detection

This commit is contained in:
Louis Abel 2022-06-21 20:29:07 -07:00
parent ba9126be5f
commit 5667a75fa2
Signed by untrusted user: label
GPG key ID: B37E62D143879B36

View file

@ -5,7 +5,7 @@ r_log "rocky" "Verify support directives"
for s in NAME=\"Rocky\ Linux\" \
ID=\"rocky\" \
ROCKY_SUPPORT_PRODUCT=\"Rocky-Linux-$RL_VER\" \
ROCKY_SUPPORT_PRODUCT_VERSION=\"$RL_VER\"; do
ROCKY_SUPPORT_PRODUCT_VERSION=\"$RL_VER\..*\"; do
if ! grep -q "$s" /etc/os-release; then
r_log "rocky" "Missing string ($s) in /etc/os-release"
r_checkExitStatus 1