From d68014345ab57eaa288dcbc93abf7869720da012 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 22 Dec 2019 14:01:10 -0800 Subject: [PATCH] Stop failing when the target dir exists, just clobber it --- gensite/Sources/gensite/main.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gensite/Sources/gensite/main.swift b/gensite/Sources/gensite/main.swift index 8b8e6b5..2c31f3d 100644 --- a/gensite/Sources/gensite/main.swift +++ b/gensite/Sources/gensite/main.swift @@ -23,11 +23,6 @@ guard sourceExists, isDir.boolValue else { } let targetPath = CommandLine.arguments[2] -let targetExists = FileManager.default.fileExists(atPath: targetPath) -guard !targetExists else { - print("error: Refusing to clobber existing target \(targetPath)") - exit(3) -} let siteURLOverride: URL? if CommandLine.argc > 3, CommandLine.arguments[3].isEmpty == false {