From d3cf9b5844fddc0fd94bfb53893a2fd6df3c6daf Mon Sep 17 00:00:00 2001 From: Rodrigo Lino Date: Mon, 23 Nov 2020 15:22:38 -0300 Subject: [PATCH] Fixed directory creation of dark svg images --- Sources/FigmaExport/Subcommands/ExportImages.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FigmaExport/Subcommands/ExportImages.swift b/Sources/FigmaExport/Subcommands/ExportImages.swift index 16f8f418..69daae98 100644 --- a/Sources/FigmaExport/Subcommands/ExportImages.swift +++ b/Sources/FigmaExport/Subcommands/ExportImages.swift @@ -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