mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-29 10:20:35 -05:00
Required for authenticating with GitHub's API using the token stored by the gh CLI.
18 lines
263 B
Go
18 lines
263 B
Go
//go:build !windows && go1.19
|
|
// +build !windows,go1.19
|
|
|
|
package safeexec
|
|
|
|
import (
|
|
"errors"
|
|
"os/exec"
|
|
)
|
|
|
|
func LookPath(file string) (string, error) {
|
|
path, err := exec.LookPath(file)
|
|
if errors.Is(err, exec.ErrDot) {
|
|
return path, nil
|
|
}
|
|
return path, err
|
|
}
|