We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da05748 commit ddcf3edCopy full SHA for ddcf3ed
lib/dtutils/file.lua
@@ -207,9 +207,9 @@ local function _search_for_bin_macos(bin)
207
local lines = du.split(output, "\n")
208
209
for _,line in ipairs(lines) do
210
- local spath = dtutils_file.sanitize_filename(line:sub(1, -2))
+ local spath = dtutils_file.sanitize_filename(line:sub(1, -1))
211
if dtutils_file.test_file(spath, "x") then
212
- dtutils_file.set_executable_path_preference(bin, spath)
+ dtutils_file.set_executable_path_preference(bin, spath) -- save it so we don't have to search again
213
result = spath
214
end
215
0 commit comments