Skip to content

Commit

Permalink
a fallback for shells in unix
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Nov 13, 2024
1 parent c1d959f commit 0e82cec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/shell/unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func NewShell() *Shell {
case strings.HasSuffix(shellPath, sh.Fish):
shell = sh.NewFishShell()
default:
// use bash as default shell, in case os.Getenv("SHELL") does not work in docker containers.
shell = sh.NewBashShell()
}
return &Shell{shell}
}
Expand Down

0 comments on commit 0e82cec

Please sign in to comment.