From f91b56acff49c6d8afbb3a4dabd4d86f4d240d68 Mon Sep 17 00:00:00 2001 From: rxi Date: Sun, 31 May 2020 17:03:36 +0100 Subject: Updated plugins for 1.06 release --- plugins/gitstatus.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/gitstatus.lua') diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua index a9db50b..a58fd0f 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -11,10 +11,9 @@ local git = { } -local tempfile = ".lite_gitstatus_" .. os.tmpname():gsub("%W", "") - local function exec(cmd, wait) - system.exec(cmd .. " >" .. tempfile) + local tempfile = core.temp_filename() + system.exec(string.format("%s > %q", cmd, tempfile)) coroutine.yield(wait) local fp = io.open(tempfile) local res = fp:read("*a") -- cgit v1.2.3