Skip to content

Commit f1d8ad7

Browse files
committed
Fix quoting.
1 parent a3b2951 commit f1d8ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/OpenInExplorer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ local function call_list_of_files_osx(selected_images)
130130
for _, image in pairs(selected_images) do
131131
current_image = image.path..PS..image.filename
132132
-- AppleScript needs double quoted strings, and the whole command is wrapped in single quotes.
133-
table.insert(cmds, string.format(reveal_file_osx_cmd, string.gsub(string.gsub(current_image, "'", "'\\''"), "\"", "\\\"") ))
133+
table.insert(cmds, string.format(reveal_file_osx_cmd, string.gsub(string.gsub(current_image, "\"", "\\\""), "'", "'\"'\"'")))
134134
end
135135
reveal_cmd = table.concat(cmds, ",")
136136
run_cmd = string.format(open_files.macos, reveal_cmd)

0 commit comments

Comments
 (0)