[lib/dtutils/file.lua] replaced deprecated "which" call with recommended

"command -v" call to check the existence of a
                       program
This commit is contained in:
Bill Ferguson
2021-12-28 20:45:50 -05:00
parent d609823491
commit 79678fd82f

View File

@@ -191,7 +191,7 @@ end
local function _search_for_bin_nix(bin)
local result = false
local p = io.popen("which " .. bin)
local p = io.popen("command -v " .. bin)
local output = p:read("*a")
p:close()
if string.len(output) > 0 then