diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index 74860b67e..8f91113a8 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -726,5 +726,5 @@ func isBackupFile(path string) bool { const baseFileBase = "baseof" func isBaseTemplate(path string) bool { - return strings.Contains(path, baseFileBase) + return strings.Contains(filepath.Base(path), baseFileBase) }