Skip to content

Commit

Permalink
We should not ask for interactive shell, fix Linux term signal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Oct 28, 2024
1 parent 98f36d5 commit d0c3e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ func runInShell(cmd string, args ...string) *exec.Cmd {
switch runtime.GOOS {
case "darwin": // darwin apps don't run in the user shell environment
args = quoteArgs(args...)
data, err := exec.Command(getDarwinShell(), "-i", "-c", "env").Output()
data, err := exec.Command(getDarwinShell(), "-c", "env").Output()
if err == nil {
env = strings.Split(string(data), "\n")
}
case "linux", "freebsd", "netbsd", "openbsd", "dragonflybsd": // unix environment may be set up in shell
args = quoteArgs(args...)
data, err := exec.Command(getUnixShell(), "-i", "-c", "env").Output()
data, err := exec.Command(getUnixShell(), "-c", "env").Output()
if err == nil {
env = strings.Split(string(data), "\n")
}
Expand Down

0 comments on commit d0c3e1a

Please sign in to comment.