From a8c97343cf5cc4b4ab4e98cdf415569df427352b Mon Sep 17 00:00:00 2001 From: mnachury Date: Fri, 8 Feb 2019 15:50:10 -0500 Subject: [PATCH] Fix executable check on windows --- helper/pluginutils/loader/filter_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/pluginutils/loader/filter_windows.go b/helper/pluginutils/loader/filter_windows.go index a3423c548..7e8c4bb7c 100644 --- a/helper/pluginutils/loader/filter_windows.go +++ b/helper/pluginutils/loader/filter_windows.go @@ -9,7 +9,7 @@ import ( // On windows, an executable can be any file with any extension. To avoid // introspecting the file, here we skip executability checks on windows systems -// and simply check for the convention of an `exe` extension. +// and simply check for the convention of an `.exe` extension. func executable(path string, s os.FileInfo) bool { - return filepath.Ext(path) == "exe" + return filepath.Ext(path) == ".exe" }