Skip to content

Commit

Permalink
Ignore .DS_Store files by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tib committed Feb 11, 2022
1 parent 98a2af8 commit a64f066
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftTemplate/Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public struct Template {
let ignoreFileContents = (try? String(contentsOf: ignoreFile.url)) ?? ""
var ignorePaths = ignoreFileContents.split(separator: "\n").map(String.init).filter { !$0.isEmpty }
ignorePaths.append(Template.ignoreFile)
ignorePaths.append(".DS_Store")
try create(input: inputPath, output: outputPath, ignore: ignorePaths)
}
}

0 comments on commit a64f066

Please sign in to comment.