func getShell(userShell string) (string, error) { if userShell != "" { return userShell, nil } return shell.Detect() }
func detectRunningShell(metaData *bugsnag.MetaData) { shell, err := shell.Detect() if err == nil { metaData.Add("device", "shell", shell) } }