fs: use -l not --local for portability
This commit is contained in:
parent
edb4619a55
commit
71f21f38c1
4
fs.lua
4
fs.lua
|
@ -22,8 +22,8 @@ local unit = { ["mb"] = 1024, ["gb"] = 1024^2 }
|
|||
|
||||
-- {{{ Filesystem widget type
|
||||
local function worker(format, nfs)
|
||||
-- Fallback to listing only local file-systems
|
||||
if nfs then nfs = "" else nfs = "--local" end
|
||||
-- Fallback to listing local filesystems
|
||||
if nfs then nfs = "" else nfs = "-l" end
|
||||
|
||||
-- Get (non-localized)data from df
|
||||
local f = io.popen("LC_ALL=C df -kP " .. nfs)
|
||||
|
|
Loading…
Reference in New Issue