diff --git a/pkg/config/config.go b/pkg/config/config.go index 5e965402c..51a0553cb 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1334,6 +1334,12 @@ func (c *Config) FindHelperBinary(name string, searchPATH bool) (string, error) if fi, err := os.Stat(fullpath); err == nil && fi.Mode().IsRegular() { return fullpath, nil } + abspath, err := filepath.Abs(fullpath) + if err == nil { + if lp, err := exec.LookPath(abspath); err == nil { + return lp, nil + } + } } if searchPATH { return exec.LookPath(name)