updated linux_distro_versions.sh

master
Hari Sekhon 1 day ago
parent e435ffec3d
commit e9b439e7b8

@ -65,12 +65,6 @@ elif [ "$distro" = fedora ]; then
curl -sS https://dl.fedoraproject.org/pub/fedora/linux/releases/ |
grep -Eo '>[[:digit:]]+/<' |
sed 's/^>//; s|/<$||'
elif [ "$distro" = centos ]; then
# EOL so just print the known versions
echo "5
6
7
8"
elif [ "$distro" = redhat ]; then
curl -sS https://access.redhat.com/articles/3078 |
grep -Eo 'Red Hat Enterprise Linux [[:digit:]]+' |
@ -82,6 +76,12 @@ elif [ "$distro" = rocky ] || [ "$distro" = rockylinux ]; then
curl -sS https://dl.rockylinux.org/pub/rocky/ |
grep -Eo '>[[:digit:]]+/<' |
sed 's/^>//; s|/<$||'
elif [ "$distro" = centos ]; then
# EOL so just print the known versions
echo "5
6
7
8"
else
usage "Unsupported Linux distro: $distro"
fi |

Loading…
Cancel
Save