(name string, mode fs.FileMode)
| 2279 | } |
| 2280 | |
| 2281 | func isShellScriptFile(name string, mode fs.FileMode) bool { |
| 2282 | ext := strings.ToLower(filepath.Ext(name)) |
| 2283 | if ext == ".sh" || ext == ".bash" || ext == ".zsh" { |
| 2284 | return true |
| 2285 | } |
| 2286 | return mode&0o111 != 0 |
| 2287 | } |
| 2288 | |
| 2289 | func activeSafariURL() (string, error) { |
| 2290 | if _, err := exec.LookPath("osascript"); err != nil { |
no outgoing calls
no test coverage detected