From dc002fc1e12b4df63830788fa567cab786675125 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 28 Jun 2024 20:49:11 +0200 Subject: [PATCH] fix(cmd): use process ID for cache resolves #5182 --- src/shell/scripts/omp.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/shell/scripts/omp.lua b/src/shell/scripts/omp.lua index d6a111a3..4de0af3d 100644 --- a/src/shell/scripts/omp.lua +++ b/src/shell/scripts/omp.lua @@ -7,16 +7,7 @@ if '::UPGRADE::' == 'true' then end -- Cache PID - -function generateCustomUUID() - local template = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' - return string.gsub(template, '[x]', function(c) - local v = math.random(0, 0xf) - return string.format('%x', v) - end) -end - -os.setenv("POSH_PID", generateCustomUUID()) +os.setenv("POSH_PID", os.getpid()) -- Helper functions