X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b0bcf77ccc17dc18b6294b63de12ce3e70b53345..d2e1557e421a7dce17ae43253394a1908f7e57a1:/widgets/fs.lua diff --git a/widgets/fs.lua b/widgets/fs.lua index 3b99cba..8b51178 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -66,7 +66,7 @@ local function worker(args) function update() fs_info = {} fs_now = {} - local f = io.popen("LC_ALL=C df -kP " .. partition) + local f = assert(io.popen("LC_ALL=C df -kP")) for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount) local s = string.match(line, "^.-[%s]([%d]+)")