MCPcopy Index your code
hub / github.com/nikivdev/go / isShellScriptFile

Function isShellScriptFile

cli/flow/main.go:2281–2287  ·  view source on GitHub ↗
(name string, mode fs.FileMode)

Source from the content-addressed store, hash-verified

2279}
2280
2281func 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
2289func activeSafariURL() (string, error) {
2290 if _, err := exec.LookPath("osascript"); err != nil {

Callers 1

collectShellScriptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected