fs: use -l not --local for portability

This commit is contained in:
Adrian C. (anrxc) 2010-03-12 03:39:46 +01:00
parent edb4619a55
commit 71f21f38c1
1 changed files with 2 additions and 2 deletions

4
fs.lua
View File

@ -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)