From 1c587d372633c1e5821314e6c571e83ed3c7e657 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sat, 10 Mar 2018 13:45:04 -0500 Subject: [PATCH] Changed wine test to check for .exe"$ or .EXE"$ because of quoting string paths --- lib/dtutils/file.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dtutils/file.lua b/lib/dtutils/file.lua index 9d5a805..698962f 100644 --- a/lib/dtutils/file.lua +++ b/lib/dtutils/file.lua @@ -67,8 +67,7 @@ function dtutils_file.check_if_bin_exists(bin) if string.len(path) > 0 then if dtutils_file.check_if_file_exists(path) then path = "\"" .. path .. "\"" - if (string.match(path, ".exe$") or string.match(path, ".EXE%")) and - dt.configuration.running_os ~= "windows" or + if (string.match(path, ".exe\"$") or string.match(path, ".EXE\"$")) and dt.configuration.running_os ~= "windows" then result = "wine " .. path elseif dt.configuration.running_os == "macos" then result = "open -a -W " .. path