Skip to content

Commit

Permalink
add missing usr/bin into plugin discover path (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarchint authored and sravankorumilli committed Sep 24, 2022
1 parent eb9cf80 commit eb50224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func DiscoverPluginsGivenFilePattern(pluginLogger hclog.Logger, prefix, suffix s
if currentHomeDir, err := os.UserHomeDir(); err == nil {
dirs = append(dirs, filepath.Join(currentHomeDir, ".optimus", "plugins"))
}
dirs = append(dirs, []string{"/usr/bin", "/usr/local/bin"}...)

for _, dirPath := range dirs {
fileInfos, err := os.ReadDir(dirPath)
Expand Down

0 comments on commit eb50224

Please sign in to comment.