From 79678fd82f3ae1171d1b1edcca38a9e2c0b41cb1 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Tue, 28 Dec 2021 20:45:50 -0500 Subject: [PATCH] [lib/dtutils/file.lua] replaced deprecated "which" call with recommended "command -v" call to check the existence of a program --- lib/dtutils/file.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dtutils/file.lua b/lib/dtutils/file.lua index 28bb9c4..c3174c7 100644 --- a/lib/dtutils/file.lua +++ b/lib/dtutils/file.lua @@ -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