mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-07 05:20:30 +00:00
Fix cargo-binstall installation failure
`head` doesn't accept `1` option.
This commit is contained in:
@@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
- Fix cargo-binstall installation failure.
|
||||||
|
|
||||||
## [1.8.0] - 2022-07-26
|
## [1.8.0] - 2022-07-26
|
||||||
|
|
||||||
- Only use musl binaries for nextest if glibc isn't available. See [#13](https://github.com/taiki-e/install-action/issues/13) for more.
|
- Only use musl binaries for nextest if glibc isn't available. See [#13](https://github.com/taiki-e/install-action/issues/13) for more.
|
||||||
|
|||||||
2
main.sh
2
main.sh
@@ -95,7 +95,7 @@ install_cargo_binstall() {
|
|||||||
|
|
||||||
download "${url}" "${cargo_bin}" "cargo-binstall${exe}"
|
download "${url}" "${cargo_bin}" "cargo-binstall${exe}"
|
||||||
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
|
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
|
||||||
x cargo binstall | head 1 # cargo binstall doesn't have a normal --version flag
|
x cargo binstall | head -1 # cargo binstall doesn't have a normal --version flag
|
||||||
else
|
else
|
||||||
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall"
|
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user