mirror of
https://github.com/actions/setup-python.git
synced 2025-12-15 13:02:38 +00:00
fixup
This commit is contained in:
parent
87c35f43f0
commit
654686df1f
1 changed files with 3 additions and 7 deletions
10
src/utils.ts
10
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}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue