Skip to content

Commit

Permalink
cmd/breakpoint: Use user preferred shell if set.
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtverstehen committed Oct 15, 2024
1 parent 6eece93 commit 8059a95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/breakpoint/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ func loadConfig(ctx context.Context, file string) (ParsedConfig, error) {
}

if len(cfg.Shell) == 0 {
cfg.Shell = []string{"/bin/sh"}
if sh, ok := os.LookupEnv("SHELL"); ok {
cfg.Shell = []string{sh}
} else {
cfg.Shell = []string{"/bin/sh"}
}
}

requireGitHubOIDC := false
Expand Down

0 comments on commit 8059a95

Please sign in to comment.