diff --git a/core/tabs/utils/create-bootable-usb.sh b/core/tabs/utils/create-bootable-usb.sh index 8c75bd05..59ea9f32 100644 --- a/core/tabs/utils/create-bootable-usb.sh +++ b/core/tabs/utils/create-bootable-usb.sh @@ -71,11 +71,10 @@ fetch_fedora_latest_iso() { grep -o '"link": "[^"]*' | sed -e 's/"link": "//' | awk -v version="40" -v arch="x86_64" -v variant="Workstation" ' BEGIN { FS="," } - { - if ($0 ~ version && $0 ~ arch && $0 ~ variant && $0 ~ "Live-x86_64") { - print $0 - } - }' | + { + if ($0 ~ version && $0 ~ arch && $0 ~ variant && $0 ~ "Live-x86_64") + { print $0 } + }' | head -n 1) printf "%b\n" "${GREEN} Selected Fedora Workstation (latest) ISO URL: ${RC} $FEDORA_URL" }