Handle Fedora Distro Version

pull/329/head
default 9 months ago
parent 4d831b4776
commit 9c3904dfbf
No known key found for this signature in database

@ -99,6 +99,8 @@ arch="$(uname -m)"
if [[ "$ID" == "ol" ]]; then
distro="oracle"
distro_version="$${distro_version%%.*}"
elif [[ "$ID" == "fedora" ]]; then
distro_version="$(grep -oP '\(\K[\w ]+' /etc/fedora-release | tr '[:upper:]' '[:lower:]' | tr -d ' ')"
fi
echo "Detected Distribution: $distro"

Loading…
Cancel
Save