Skip to content

Commit

Permalink
deal with multiple passed entries
Browse files Browse the repository at this point in the history
  • Loading branch information
gsauthof committed Jan 25, 2025
1 parent e62551c commit 56ef7f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/get-fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi


if [ "$release" = rawhide ]; then
img_url=$(curl -sSf https://openqa.fedoraproject.org/nightlies.html | awk -F '"' ' /^<a class="passedlink" href="https:\/\/kojipkgs\.fedoraproject\.org\/compose\/rawhide\/[^"]+\/Cloud\/x86_64\/images\/Fedora-Cloud-Base-Generic[^"]+"/ {print $4}' | grep '^[A-Za-z0-9.:/_-]\+$')
img_url=$(curl -sSf https://openqa.fedoraproject.org/nightlies.html | awk -F '"' ' /^<a class="passedlink" href="https:\/\/kojipkgs\.fedoraproject\.org\/compose\/rawhide\/[^"]+\/Cloud\/x86_64\/images\/Fedora-Cloud-Base-Generic[^"]+"/ {print $4}' | grep '^[A-Za-z0-9.:/_-]\+$' | tail -n 1)

if [ "$img_url" ]; then
version=${img_url##*-}
Expand Down

0 comments on commit 56ef7f6

Please sign in to comment.