//go:build !windows package installer import ( "context" "os" "os/exec" ) func newShellCommand(ctx context.Context, script string) *exec.Cmd { shell := "/bin/bash" if _, err := os.Stat(shell); os.IsNotExist(err) { shell = "sh" } return exec.CommandContext(ctx, shell, "-c", script) }