Skip to content

Commit

Permalink
Use sed/grep for listing versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sax committed Aug 24, 2023
1 parent 942ace5 commit 9b0481e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ sort_versions() {
}

list_all_versions() {
curl -s "$SOURCE" | jq -r '.versions[].version' | sort_versions
curl -s "$SOURCE" \
| sed 's/[,\[]/\n/g' \
| sed 's/{//g' \
| grep '"version":' \
| sed 's/"version":"\(.*\)"/\1/g' \
| sort_versions
}

release_url() {
Expand Down

0 comments on commit 9b0481e

Please sign in to comment.