X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b0bcf77ccc17dc18b6294b63de12ce3e70b53345..1574793252a5b5ac22734d9d7a26dd4f6869b72e:/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]+)")