File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ import (
27
27
"strconv"
28
28
"strings"
29
29
30
+ lib_shell "github.com/docker/machine/libmachine/shell"
31
+ "github.com/golang/glog"
30
32
"github.com/spf13/cobra"
31
33
"k8s.io/minikube/pkg/drivers/kic/oci"
32
34
"k8s.io/minikube/pkg/minikube/command"
@@ -168,7 +170,14 @@ var dockerEnvCmd = &cobra.Command{
168
170
if ec .Shell == "" {
169
171
ec .Shell , err = shell .Detect ()
170
172
if err != nil {
171
- exit .WithError ("Error detecting shell" , err )
173
+ // if we can't detect it could be bash. for example github actions
174
+ if err == lib_shell .ErrUnknownShell {
175
+ ec .Shell = "bash"
176
+ glog .Warningf ("couldn't detect shell type, will default to bash: %v" , err )
177
+ } else {
178
+ exit .WithError ("Error detecting shell" , err )
179
+ }
180
+
172
181
}
173
182
}
174
183
You can’t perform that action at this time.
0 commit comments