Skip to content

Commit eb50224

Browse files
smarchonesravankorumilli
authored andcommitted
add missing usr/bin into plugin discover path (#612)
1 parent eb9cf80 commit eb50224

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func DiscoverPluginsGivenFilePattern(pluginLogger hclog.Logger, prefix, suffix s
127127
if currentHomeDir, err := os.UserHomeDir(); err == nil {
128128
dirs = append(dirs, filepath.Join(currentHomeDir, ".optimus", "plugins"))
129129
}
130+
dirs = append(dirs, []string{"/usr/bin", "/usr/local/bin"}...)
130131

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

0 commit comments

Comments
 (0)