tangled
alpha
login
or
join now
fuwn.net
/
yae
0
fork
atom
⛩️ Powerful yet Minimal Nix Dependency Manager
flake
flakes
home-manager
nixos
go
nix
dependency
dependencies
0
fork
atom
overview
issues
pulls
pipelines
feat(utilities): Error check executable path
fuwn.net
3 months ago
cf21690f
528be0fd
verified
This commit was signed with the committer's
known signature
.
fuwn.net
SSH Key Fingerprint:
SHA256:VPdFPyPbd6JkoMyWUdZ/kkTcIAt3sxjXD2XSAZ7FYC4=
+6
-1
1 changed file
expand all
collapse all
unified
split
internal
yae
utilities.go
+6
-1
internal/yae/utilities.go
···
37
37
38
38
func command(name string, show bool, args ...string) (string, error) {
39
39
executable, err := exec.LookPath(name)
40
40
-
out := []byte{}
40
40
+
41
41
+
if err != nil {
42
42
+
return "", fmt.Errorf("command not found: %s", name)
43
43
+
}
44
44
+
45
45
+
var out []byte
41
46
42
47
if show {
43
48
cmd := exec.Command(executable, args...)