mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 15:10: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
|
||||
mkdir -p -- "${install_action_dir}"
|
||||
# See action.yml.
|
||||
touch -- "${install_action_dir}"/init
|
||||
printf '' >|"${install_action_dir}"/init
|
||||
if [[ -n "${cargo_path}" ]]; then
|
||||
info "cargo is located at ${cargo_path}"
|
||||
cargo_bin="${cargo_path%/*}"
|
||||
|
||||
Reference in New Issue
Block a user