toolkit/func/core/pkg_release/40-system-release.sh
2021-07-04 23:50:25 -07:00

9 lines
304 B
Bash
Executable File

#!/bin/bash
r_log "rocky" "Check /etc/rocky-release symbolic links"
grep -q "Rocky" /etc/rocky-release || r_checkExitStatus 1
(file /etc/redhat-release | grep -qE "symbolic link to .?rocky-release.?") && \
(file /etc/system-release | grep -qE "symbolic link to .?rocky-release.?")
r_checkExitStatus $?