Open
Description
I am trying to get the number of the latest rustup
release with the following:
curl --silent "https://api.github.com/repos/rust-lang/rustup/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
This is currently not working with the rustup
repository, although it does work with rust-lang/rust
:
$ curl --silent "https://api.github.com/repos/rust-lang/rust/releases/latest" |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/'
1.53.0
This API would be great to have enabled for this repository!