1 diff --git a/shells/bash.go b/shells/bash.go
2 index 18d608445..f158ffc0b 100644
5 @@ -3,6 +3,7 @@ package shells
13 @@ -307,7 +308,11 @@ func (b *BashShell) GetConfiguration(info common.ShellScriptInfo) (*common.Shell
16 if runtime.GOOS == OSLinux {
17 - script.Arguments = []string{"-s", "/bin/" + b.Shell, info.User, "-c", script.CmdLine}
18 + shellPath, err := exec.LookPath(b.Shell)
20 + shellPath = "/bin/" + b.Shell
22 + script.Arguments = []string{"-s", shellPath, info.User, "-c", script.CmdLine}
24 script.Arguments = []string{info.User, "-c", script.CmdLine}