From e9b439e7b8bf7a7d2d7b41b9671a14f89cee89c6 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Sun, 22 Sep 2024 21:58:51 +0100 Subject: [PATCH] updated linux_distro_versions.sh --- bin/linux_distro_versions.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/linux_distro_versions.sh b/bin/linux_distro_versions.sh index ca5df63a..21ead179 100755 --- a/bin/linux_distro_versions.sh +++ b/bin/linux_distro_versions.sh @@ -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 |