From 9514be0df0613f4c7c6dd8e0b25f62f026ace9d3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 10 Jun 2015 20:24:34 -0700 Subject: [PATCH] lowercase the extension of plugins just in case --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 20e8929c3..2ebc66422 100644 --- a/config.go +++ b/config.go @@ -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. // 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( "[DEBUG] Ignoring plugin match %s, no exe extension", match)