diff --git a/detect-system-version.sh b/detect-system-version.sh index 89e368f..7a70d3e 100755 --- a/detect-system-version.sh +++ b/detect-system-version.sh @@ -134,6 +134,12 @@ detect_redhat_version() ;; esac + elif [ -f /etc/fedora-release ] && [ -f /etc/os-release ]; then + . /etc/os-release + if [ "$NAME" = "Fedora" ] && [ "$VERSION_ID" != "" ]; then + echo "redhat-fedora$VERSION_ID" + fi + else DATA=`cat /etc/redhat-release` case "$DATA" in