Write generated file to current working directory #1

Merged
Sven merged 7 commits from workdir into main 2020-12-30 13:56:39 +00:00
Showing only changes of commit a23ccc8284 - Show all commits

View file

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