forked from mirror/async-std
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
617 B
Bash
19 lines
617 B
Bash
set -euxo pipefail
|
|
|
|
# Based on the Rust-Embedded WG's book CI
|
|
# https://github.com/rust-embedded/book/blob/master/ci/install.sh
|
|
|
|
main() {
|
|
# Note - this will accept any tagged release
|
|
local tag=$(git ls-remote --tags --refs --exit-code \
|
|
https://github.com/nabijaczleweli/cargo-update \
|
|
| cut -d/ -f3 \
|
|
| grep -E '^v[0-9\.]+$' \
|
|
| sort --version-sort \
|
|
| tail -n1)
|
|
|
|
$(dirname $(realpath $0))/install-tbz2.sh --git nabijaczleweli/cargo-update --tag $tag --crate cargo-install-update
|
|
}
|
|
|
|
main
|