Skip to content

Commit

Permalink
Fix doctor check for suspicious entries
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jul 13, 2021
1 parent 8447065 commit 1ba3727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/chezmoi/chezmoi.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func SHA256Sum(data []byte) []byte {
func SuspiciousSourceDirEntry(base string, info fs.FileInfo) bool {
switch info.Mode().Type() {
case 0:
return strings.HasPrefix(base, Prefix) && knownPrefixedFiles.contains(base)
return strings.HasPrefix(base, Prefix) && !knownPrefixedFiles.contains(base)
case fs.ModeDir:
return strings.HasPrefix(base, Prefix) && base != templatesDirName
case fs.ModeSymlink:
Expand Down

0 comments on commit 1ba3727

Please sign in to comment.