diff options
| author | Fuwn <[email protected]> | 2024-10-11 03:49:21 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-11 03:49:21 +0000 |
| commit | 7e49fed62cf5419c64f123cfdd35f7cc36ec474e (patch) | |
| tree | 7d08503c19b6ea62f63c3745af7f3f6ad6a31eba /wiene.go | |
| parent | refactor: reorder subcommands (diff) | |
| download | yae-7e49fed62cf5419c64f123cfdd35f7cc36ec474e.tar.xz yae-7e49fed62cf5419c64f123cfdd35f7cc36ec474e.zip | |
refactor(wiene.go): use LookPath on executable name
Diffstat (limited to 'wiene.go')
| -rw-r--r-- | wiene.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -179,7 +179,9 @@ func fetchSHA256(uri string, unpack bool) (string, error) { } func commandOutput(name string, args ...string) (string, error) { - cmd := exec.Command(name, args...) + executable, err := exec.LookPath(name) + + cmd := exec.Command(executable, args...) cmd.Stdin = os.Stdin cmd.Stderr = os.Stderr out, err := cmd.Output() |