From 654686df1fb48b4b1b575e0e6d4cb01ba99b8f96 Mon Sep 17 00:00:00 2001 From: Christoph Hansknecht Date: Fri, 7 Nov 2025 22:26:40 +0100 Subject: [PATCH] fixup --- src/utils.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 9f82821b..8b2011af 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -423,16 +423,12 @@ export function getDownloadFileName(downloadUrl: string): string | undefined { : undefined; } -export function addPkgConfigPathToEnv(path: string): undefined { +export function addPkgConfigPathToEnv(new_path: string): undefined { const pkg_config_path = process.env['PKG_CONFIG_PATH']; if (pkg_config_path === undefined) { - core.exportVariable('PKG_CONFIG_PATH', path); + core.exportVariable('PKG_CONFIG_PATH', new_path); } else { - if (IS_WINDOWS) { - core.exportVariable('PKG_CONFIG_PATH', `${path};${pkg_config_path}`); - } else { - core.exportVariable('PKG_CONFIG_PATH', `${path}:${pkg_config_path}`); - } + core.exportVariable('PKG_CONFIG_PATH', `${pkg_config_path}${path.delimiter}${new_path}`); } }