Skip to content

Commit

Permalink
Fixed directory creation of dark svg images
Browse files Browse the repository at this point in the history
  • Loading branch information
rlinoz authored and subdan committed Nov 27, 2020
1 parent b503461 commit d3cf9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FigmaExport/Subcommands/ExportImages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ extension FigmaExportCommand {
}
let darkFiles = asset.dark?.images.map { image -> FileContents in
let fileURL = URL(string: "\(image.name).svg")!
let dest = Destination(directory: tempDirectoryLightURL, file: fileURL)
let dest = Destination(directory: tempDirectoryDarkURL, file: fileURL)
return FileContents(destination: dest, sourceURL: image.url, dark: true)
} ?? []
return lightFiles + darkFiles
Expand Down

0 comments on commit d3cf9b5

Please sign in to comment.