Write generated file to current working directory

This commit is contained in:
Sven Weidauer 2020-12-30 13:56:07 +01:00
parent 57c39d6e95
commit d3a1cf54e2

View file

@ -76,7 +76,8 @@ public final class MakeColors: ParsableCommand, Context {
if let output = output { if let output = output {
return URL(fileURLWithPath: output) return URL(fileURLWithPath: output)
} else { } else {
return URL(fileURLWithPath: input).deletingPathExtension().appendingPathExtension(`extension`) let basename = URL(fileURLWithPath: input).deletingPathExtension().lastPathComponent
return URL(fileURLWithPath: basename).appendingPathExtension(`extension`)
} }
} }
} }