forked from sig_core/toolkit
fix os release detection
This commit is contained in:
parent
ba9126be5f
commit
5667a75fa2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user