diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-31 17:03:36 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-05-31 17:03:36 +0100 |
commit | f91b56acff49c6d8afbb3a4dabd4d86f4d240d68 (patch) | |
tree | d92ea469c9483563fbbebdb83fde823e477767b8 /plugins/gitstatus.lua | |
parent | 7f6e1bea6816ea7352d9a6f9d5683a0c8fde97b7 (diff) | |
download | lite-xl-plugins-f91b56acff49c6d8afbb3a4dabd4d86f4d240d68.tar.gz lite-xl-plugins-f91b56acff49c6d8afbb3a4dabd4d86f4d240d68.zip |
Updated plugins for 1.06 release
Diffstat (limited to 'plugins/gitstatus.lua')
-rw-r--r-- | plugins/gitstatus.lua | 5 |
1 files changed, 2 insertions, 3 deletions
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") |