Prefer shell builtin over commad

This commit is contained in:
Taiki Endo
2026-04-19 10:07:01 +09:00
parent 055f5df8c3
commit ff5a208d55

View File

@@ -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%/*}"