Write generated file to current working directory
This commit is contained in:
parent
57c39d6e95
commit
d3a1cf54e2
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