diff --git a/core/subSystem.go b/core/subSystem.go index 56ba4990..9c224d87 100644 --- a/core/subSystem.go +++ b/core/subSystem.go @@ -64,9 +64,9 @@ func findExportedBinaries(internalName string) map[string]map[string]string { return map[string]map[string]string{} } binPath := filepath.Join(home, ".local", "bin") - if _, err := os.Stat(binDir); os.IsNotExist(err) { - return map[string]map[string]string{} - } + if _, err := os.Stat(binPath); os.IsNotExist(err) { + return map[string]map[string]string{} + } binDir := os.DirFS(binPath) binaries := map[string]map[string]string{}