We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c7972 commit 58cbe53Copy full SHA for 58cbe53
cmd/buildlet/buildlet.go
@@ -88,7 +88,8 @@ var (
88
// 26: clean up path validation and normalization
89
// 27: export GOPLSCACHE=$workdir/goplscache
90
// 28: add support for gomote server
91
-const buildletVersion = 28
+// 29: fall back to /bin/sh when SHELL is unset
92
+const buildletVersion = 29
93
94
func defaultListenAddr() string {
95
if runtime.GOOS == "darwin" {
@@ -2039,6 +2040,9 @@ func shell() string {
2039
2040
case "windows":
2041
return `C:\Windows\System32\cmd.exe`
2042
default:
- return os.Getenv("SHELL")
2043
+ if shell := os.Getenv("SHELL"); shell != "" {
2044
+ return shell
2045
+ }
2046
+ return "/bin/sh"
2047
}
2048
0 commit comments