aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-02 17:51:03 +0800
committerGitHub <noreply@github.com>2024-06-02 17:51:03 +0800
commit7e3f47093f2dcb36cf94a35403027ec72bf7b084 (patch)
treec0c1b6fddb8ec28f2648183f9d76694ec0e9c399
parent80e320217a2508fb665623cf994a723f83bd1390 (diff)
downloadllm-functions-docker-7e3f47093f2dcb36cf94a35403027ec72bf7b084.tar.gz
fix: incorrect bash path in generated `.cmd` files (#15)
-rw-r--r--Argcfile.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Argcfile.sh b/Argcfile.sh
index f1496ed..a9f2fb7 100644
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -205,9 +205,9 @@ _build_win_shim() {
lang="$1"
cmd="$(_lang_to_cmd "$lang")"
if [[ "$lang" == "sh" ]]; then
- run="\"$(cygpath -w "$(which $cmd)")\" --noprofile --norc"
+ run="\"$(argc --argc-shell-path)\" --noprofile --norc"
else
- run="\"$(cygpath -w "$(which $cmd)")\""
+ run="\"$(_normalize_path "$(which $cmd)")\""
fi
cat <<-EOF
@echo off