Write generated file to current working directory #1
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ public final class MakeColors: ParsableCommand, Context {
|
|||
if let output = output {
|
||||
return URL(fileURLWithPath: output)
|
||||
} else {
|
||||
return URL(fileURLWithPath: input).deletingPathExtension().appendingPathExtension(`extension`)
|
||||
let basename = URL(fileURLWithPath: input).deletingPathExtension().lastPathComponent
|
||||
return URL(fileURLWithPath: basename).appendingPathExtension(`extension`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue