Skip to content

Commit

Permalink
properly detect fedora version
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszklim committed Feb 17, 2018
1 parent 90b4422 commit 9fe4167
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions detect-system-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fe4167

Please sign in to comment.