Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
support imgsumDatabasePath with space on windows
Browse files Browse the repository at this point in the history
Only the command and args were quoted when executing imgsum on windows but if the path to the imgsumDatabasePath contained a space LrTasks.execute() would return 1

Quoting the imgsumDatabasePath fixes the issue
  • Loading branch information
Chris Henry committed Dec 9, 2019
1 parent bfc2ed4 commit 3d713ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deduplicator.lrdevplugin/FindDuplicates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function IndexPhoto(photo)

local imagePath = photo:getRawMetadata("path")
if WIN_ENV == true then
command = string.format('"%s" "%s" >> %s',
command = string.format('"%s" "%s" >> "%s"',
LrPathUtils.child( LrPathUtils.child( _PLUGIN.path, "win" ), binName .. '.exe' ),
imagePath,
imgsumDatabasePath)
Expand Down

0 comments on commit 3d713ba

Please sign in to comment.