mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-09 14:20:29 +00:00
Fix cargo-binstall installation failure
`head` doesn't accept `1` option.
This commit is contained in:
2
main.sh
2
main.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user