mirror of https://github.com/perkeep/perkeep.git
server/app: fix binPath logic bug
Change-Id: I1c77881cc0a0de93a8745d3e82db56de86e18880
This commit is contained in:
parent
ea5360382b
commit
8f5a9e2922
|
@ -182,7 +182,7 @@ func (a *Handler) Start() error {
|
|||
log.Printf("%q executable not found in %q", e)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
if binPath == "" || err != nil {
|
||||
binPath, err = exec.LookPath(name)
|
||||
if err != nil {
|
||||
return fmt.Errorf("%q executable not found in PATH.", name)
|
||||
|
|
Loading…
Reference in New Issue