aboutsummaryrefslogtreecommitdiff
path: root/widgets/fs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/fs.lua')
-rw-r--r--widgets/fs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/fs.lua b/widgets/fs.lua
index 7832b1f..4b889dc 100644
--- a/widgets/fs.lua
+++ b/widgets/fs.lua
@@ -27,7 +27,7 @@ local function worker(format, warg)
if warg then warg = "" else warg = "-l" end
local fs_info = {} -- Get data from df
- local f = io.popen("LC_ALL=C df -kP " .. warg)
+ local f = io.popen("LC_ALL=C df -kP " .. helpers.shellquote(warg))
for line in f:lines() do -- Match: (size) (used)(avail)(use%) (mount)
local s = string.match(line, "^.-[%s]([%d]+)")