From ff5a208d55603871eb45044a34a804cea146bd63 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 19 Apr 2026 10:07:01 +0900 Subject: [PATCH] Prefer shell builtin over commad --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index e3310c45..37be24f0 100755 --- a/main.sh +++ b/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%/*}"