Replace os.execute with gfs function
This commit is contained in:
parent
e8ad3a32f5
commit
7c677e01cc
|
@ -160,7 +160,7 @@ function completion.shell(command, cur_pos, ncomp, shell)
|
||||||
while true do
|
while true do
|
||||||
local line = c:read("*line")
|
local line = c:read("*line")
|
||||||
if not line then break end
|
if not line then break end
|
||||||
if os.execute("test -d " .. string.format('%q', line)) == 0 then
|
if gfs.is_dir(line) then
|
||||||
line = line .. "/"
|
line = line .. "/"
|
||||||
end
|
end
|
||||||
table.insert(output, bash_escape(line))
|
table.insert(output, bash_escape(line))
|
||||||
|
|
Loading…
Reference in New Issue