fix: incorrect bash path in generated .cmd files (#15)

This commit is contained in:
sigoden
2024-06-02 17:51:03 +08:00
committed by GitHub
parent 80e320217a
commit 7e3f47093f
+2 -2
View File
@@ -205,9 +205,9 @@ _build_win_shim() {
lang="$1" lang="$1"
cmd="$(_lang_to_cmd "$lang")" cmd="$(_lang_to_cmd "$lang")"
if [[ "$lang" == "sh" ]]; then if [[ "$lang" == "sh" ]]; then
run="\"$(cygpath -w "$(which $cmd)")\" --noprofile --norc" run="\"$(argc --argc-shell-path)\" --noprofile --norc"
else else
run="\"$(cygpath -w "$(which $cmd)")\"" run="\"$(_normalize_path "$(which $cmd)")\""
fi fi
cat <<-EOF cat <<-EOF
@echo off @echo off