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:
parent
391cea13ed
commit
ced2e945e3
|
@ -296,7 +296,7 @@ func (c *config) discoverSingle(glob string) (map[string]string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the filename has a ".", trim up to there
|
// 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]
|
file = file[:idx]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue