From 9695f4d2030f9472c6332a9ad690d32fe5b29063 Mon Sep 17 00:00:00 2001 From: Chris Antos Date: Sat, 15 Oct 2022 14:32:49 -0700 Subject: [PATCH] fix(cmd): do not leak global variable --- src/shell/scripts/omp.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell/scripts/omp.lua b/src/shell/scripts/omp.lua index 0ab06c9e..570fc57e 100644 --- a/src/shell/scripts/omp.lua +++ b/src/shell/scripts/omp.lua @@ -46,6 +46,7 @@ end local function run_posh_command(command) command = '"'..command..'"' local _,ismain = coroutine.running() + local output if ismain then output = io.popen(command):read("*a") else