From 914981e02649fe6b81b81aee808131f918004967 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 19 May 2022 08:34:09 +0200 Subject: [PATCH] Fix a typo of #possible_binary_locations Fixes #1022 --- lib/wicked_pdf/binary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wicked_pdf/binary.rb b/lib/wicked_pdf/binary.rb index cc84ab0d..383f9ea1 100644 --- a/lib/wicked_pdf/binary.rb +++ b/lib/wicked_pdf/binary.rb @@ -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