From d3b0d77baf550081063e25c204516673f76f4316 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 26 Sep 2024 09:21:20 +0800 Subject: [PATCH] fix: env path on unix --- src/registryManager/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registryManager/base.ts b/src/registryManager/base.ts index c61000d..ee2a2f9 100644 --- a/src/registryManager/base.ts +++ b/src/registryManager/base.ts @@ -18,7 +18,7 @@ export abstract class RegistryManager { } protected async exec(command: string) { - const result = await run(command, {}, { collectOutput: true, silent: true }) + const result = await run(command, process.env, { collectOutput: true, silent: true }) return result.trim() }