make period stripping more strict so that users can disable provisiners by adding .old or whatever; this is pretty typical convention.

This commit is contained in:
Megan Marsh 2020-02-13 12:59:47 -08:00
parent 391cea13ed
commit ced2e945e3
1 changed files with 1 additions and 1 deletions

View File

@ -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]
}