Skip to content

Commit 79678fd

Browse files
committed
[lib/dtutils/file.lua] replaced deprecated "which" call with recommended
"command -v" call to check the existence of a program
1 parent d609823 commit 79678fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dtutils/file.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ end
191191

192192
local function _search_for_bin_nix(bin)
193193
local result = false
194-
local p = io.popen("which " .. bin)
194+
local p = io.popen("command -v " .. bin)
195195
local output = p:read("*a")
196196
p:close()
197197
if string.len(output) > 0 then

0 commit comments

Comments
 (0)