Skip to content

Commit

Permalink
fix: fix list-all to handle pages without linux elements, Fix #90
Browse files Browse the repository at this point in the history
  • Loading branch information
sbocinec committed Mar 14, 2024
1 parent 00cdf06 commit ea78fea
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 ea78fea

Please sign in to comment.