mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 07:00:27 +00:00
Prefer shell builtin over commad
This commit is contained in:
2
main.sh
2
main.sh
@@ -616,7 +616,7 @@ cargo_path=$(type -P cargo || true)
|
|||||||
if [[ "${host_os}" == "windows" ]]; then
|
if [[ "${host_os}" == "windows" ]]; then
|
||||||
mkdir -p -- "${install_action_dir}"
|
mkdir -p -- "${install_action_dir}"
|
||||||
# See action.yml.
|
# See action.yml.
|
||||||
touch -- "${install_action_dir}"/init
|
printf '' >|"${install_action_dir}"/init
|
||||||
if [[ -n "${cargo_path}" ]]; then
|
if [[ -n "${cargo_path}" ]]; then
|
||||||
info "cargo is located at ${cargo_path}"
|
info "cargo is located at ${cargo_path}"
|
||||||
cargo_bin="${cargo_path%/*}"
|
cargo_bin="${cargo_path%/*}"
|
||||||
|
|||||||
Reference in New Issue
Block a user