fixed bash-for-windows

This commit is contained in:
Cametendo
2026-05-31 21:49:13 +02:00
parent 7b3a101946
commit 9037606447
8 changed files with 437 additions and 123 deletions

View File

@@ -43,7 +43,7 @@ func runFile(path string, args []string) error {
return fmt.Errorf("%s: %v", path, err)
}
sh := shell.New()
sh.SetArgs(append([]string{path}, args...))
sh.SetArgs(args)
sh.SetVar("0", path)
return sh.Execute(string(data))
}