From ced2e945e3cc5ea9ef48a0896ce396f79ffb65c5 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 13 Feb 2020 12:59:47 -0800 Subject: [PATCH] make period stripping more strict so that users can disable provisiners by adding .old or whatever; this is pretty typical convention. --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 43293c04f..358014bc2 100644 --- a/config.go +++ b/config.go @@ -296,7 +296,7 @@ func (c *config) discoverSingle(glob string) (map[string]string, error) { } // If the filename has a ".", trim up to there - if idx := strings.Index(file, "."); idx >= 0 { + if idx := strings.Index(file, ".exe"); idx >= 0 { file = file[:idx] }