MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / resolveExecutable

Function resolveExecutable

internal/fab/browser_source.go:226–243  ·  view source on GitHub ↗
(candidate string)

Source from the content-addressed store, hash-verified

224}
225
226func resolveExecutable(candidate string) (string, bool) {
227 if strings.TrimSpace(candidate) == "" {
228 return "", false
229 }
230
231 if strings.Contains(candidate, string(os.PathSeparator)) {
232 if _, err := os.Stat(candidate); err == nil {
233 return candidate, true
234 }
235 return "", false
236 }
237
238 resolved, err := exec.LookPath(candidate)
239 if err != nil {
240 return "", false
241 }
242 return resolved, true
243}

Callers 1

resolveBrowserOverrideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected