lowercase the extension of plugins just in case

This commit is contained in:
Mitchell Hashimoto 2015-06-10 20:24:34 -07:00
parent 03032c26fb
commit 9514be0df0
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func (c *config) discoverSingle(glob string, m *map[string]string) error {
// One Windows, ignore any plugins that don't end in .exe. // One Windows, ignore any plugins that don't end in .exe.
// We could do a full PATHEXT parse, but this is probably good enough. // We could do a full PATHEXT parse, but this is probably good enough.
if runtime.GOOS == "windows" && filepath.Ext(file) != "exe" { if runtime.GOOS == "windows" && strings.ToLower(filepath.Ext(file)) != "exe" {
log.Printf( log.Printf(
"[DEBUG] Ignoring plugin match %s, no exe extension", "[DEBUG] Ignoring plugin match %s, no exe extension",
match) match)