Skip to content

Commit

Permalink
fix: fix list-all to handle pages without linux elements, Fix jtheged…
Browse files Browse the repository at this point in the history
…us#90 (#1)

Co-authored-by: Stano Bocinec <sb@juniq.net>
  • Loading branch information
JakobGM and sbocinec authored Jan 29, 2025
1 parent 93b231d commit 961547a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/list-all
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function list_all() {
else
more=false
fi
additions=$(echo "${res}" | grep -Eo "name.*google-cloud-sdk-[0-9]+\.[0-9]+\.[0-9]+-(linux)-x86_64" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")
additions=$(echo "${res}" | grep -Eo "name.*google-cloud-sdk-[0-9]+\.[0-9]+\.[0-9]+-(linux)-x86_64" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+" || true)
if [[ -n "${additions}" ]]; then
list="${list}\n${additions}"
fi
Expand Down

0 comments on commit 961547a

Please sign in to comment.