Update create-bootable-usb.sh

This commit is contained in:
Lennart Pieperjohanns 2024-09-30 16:52:39 +02:00 committed by GitHub
parent 82e99d2142
commit 01690ed97d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,11 +71,10 @@ fetch_fedora_latest_iso() {
grep -o '"link": "[^"]*' | grep -o '"link": "[^"]*' |
sed -e 's/"link": "//' | sed -e 's/"link": "//' |
awk -v version="40" -v arch="x86_64" -v variant="Workstation" ' BEGIN { FS="," } awk -v version="40" -v arch="x86_64" -v variant="Workstation" ' BEGIN { FS="," }
{ {
if ($0 ~ version && $0 ~ arch && $0 ~ variant && $0 ~ "Live-x86_64") { if ($0 ~ version && $0 ~ arch && $0 ~ variant && $0 ~ "Live-x86_64")
print $0 { print $0 }
} }' |
}' |
head -n 1) head -n 1)
printf "%b\n" "${GREEN} Selected Fedora Workstation (latest) ISO URL: ${RC} $FEDORA_URL" printf "%b\n" "${GREEN} Selected Fedora Workstation (latest) ISO URL: ${RC} $FEDORA_URL"
} }