Skip to content

Commit 0122b3f

Browse files
authored
Merge pull request darktable-org#374 from wpferguson/which_deprecation_369
Fix dtutils/file.lua deprecation warning
2 parents 034ddfb + 79678fd commit 0122b3f

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)