mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
Stop failing when the target dir exists, just clobber it
This commit is contained in:
parent
2cdedfa348
commit
d68014345a
1 changed files with 0 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue