Skip to content

Commit

Permalink
Merge pull request #1025 from olleolleolle/patch-2
Browse files Browse the repository at this point in the history
Fix a typo of #possible_binary_locations
  • Loading branch information
unixmonkey authored May 19, 2022
2 parents 69c300e + 914981e commit 8580e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wicked_pdf/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def retrieve_binary_version
def find_binary_path
exe_path ||= WickedPdf.config[:exe_path] unless WickedPdf.config.empty?
exe_path ||= possible_which_path
exe_path ||= possible_locations.map { |l| File.expand_path("#{l}/#{EXE_NAME}") }.find { |location| File.exist?(location) }
exe_path ||= possible_binary_locations.map { |l| File.expand_path("#{l}/#{EXE_NAME}") }.find { |location| File.exist?(location) }
exe_path || ''
end

Expand Down

0 comments on commit 8580e19

Please sign in to comment.