mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
Ignore .gitkeep and .DS_Store files
This commit is contained in:
parent
c2c28953ec
commit
c4f7af1684
1 changed files with 5 additions and 0 deletions
|
|
@ -60,6 +60,11 @@ public final class Generator {
|
|||
|
||||
func renderOrCopyFile(url fileURL: URL, targetDir: URL) throws {
|
||||
let filename = fileURL.lastPathComponent
|
||||
guard filename != ".DS_Store", filename != ".gitkeep" else {
|
||||
print("Ignoring hidden file \(filename)")
|
||||
return
|
||||
}
|
||||
|
||||
let ext = filename.split(separator: ".").last!
|
||||
switch ext {
|
||||
case "less":
|
||||
|
|
|
|||
Loading…
Reference in a new issue