Fix cargo-binstall installation failure

`head` doesn't accept `1` option.
This commit is contained in:
Taiki Endo
2022-07-26 12:05:34 +09:00
parent 85064bbc1c
commit d1839c2f68
2 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
- Fix cargo-binstall installation failure.
## [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.

View File

@@ -95,7 +95,7 @@ install_cargo_binstall() {
download "${url}" "${cargo_bin}" "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
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall"
fi