Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit f7315d4

Browse files
authored
Revert "sg: execute bash in interactive mode (#42689)" (#42858)
This reverts commit a4ae7a7.
1 parent 94f0fe3 commit f7315d4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

dev/sg/internal/usershell/command.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ func wrap(ctx context.Context, cmd string) wrapped {
3737
case ShellType(ctx) == FishShell:
3838
w.Command = fmt.Sprintf("fish || true; %s", cmd)
3939

40-
case ShellType(ctx) == BashShell:
41-
// -i sets the bash shell to be interactive, since this IS an interactive step but more importantly
42-
// on some platforms (I'm looking at you Ubuntu runner from github actions) the ~/.bashrc file has a section
43-
// where it EXITs early out of the bashrc file if it is not running in interactive mode ...
44-
w.ShellFlags = []string{"-i", "-c"}
45-
w.Command = fmt.Sprintf("source %s || true; %s", ShellConfigPath(ctx), cmd)
4640
default:
4741
// The above interactive shell approach fails on OSX because the default shell configuration
4842
// prints sessions restoration informations that will mess with the output. So we fall back

0 commit comments

Comments
 (0)