shell tweaks, better handling for windows (#5455)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
parent
91ab966921
commit
15caecdb45
6 changed files with 116 additions and 80 deletions
|
|
@ -1,13 +0,0 @@
|
|||
export function shell() {
|
||||
const s = process.env.SHELL
|
||||
if (s) return s
|
||||
if (process.platform === "darwin") {
|
||||
return "/bin/zsh"
|
||||
}
|
||||
if (process.platform === "win32") {
|
||||
return process.env.COMSPEC || "cmd.exe"
|
||||
}
|
||||
const bash = Bun.which("bash")
|
||||
if (bash) return bash
|
||||
return "bash"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue