From d9c5c9028581150850e7051f90353399a85c75b4 Mon Sep 17 00:00:00 2001 From: Inseo Lee Date: Mon, 6 May 2024 11:04:40 +0900 Subject: [PATCH] fix(system): Fix argument passing to `Split-PathLikeEnvVar()` in deprecated `strip_path()` (#5937) Co-authored-by: Hsiao-nan Cheung --- CHANGELOG.md | 1 + lib/system.ps1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 131b0d3391..ccf1140207 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Bug Fixes - **autoupdate:** Copy `PSCustomObject`-type properties within `autoupdate` to prevent reference changes ([#5934](https://github.com/ScoopInstaller/Scoop/issues/5934)) +- **system:** Fix argument passing to `Split-PathLikeEnvVar()` in deprecated `strip_path()` ([#5937](https://github.com/ScoopInstaller/Scoop/issues/5937)) ## [v0.4.1](https://github.com/ScoopInstaller/Scoop/compare/v0.4.0...v0.4.1) - 2024-04-25 diff --git a/lib/system.ps1 b/lib/system.ps1 index affe2c5450..692cb40275 100644 --- a/lib/system.ps1 +++ b/lib/system.ps1 @@ -162,7 +162,7 @@ function env($name, $global, $val) { function strip_path($orig_path, $dir) { Show-DeprecatedWarning $MyInvocation 'Split-PathLikeEnvVar' - Split-PathLikeEnvVar -Name $dir -Path $orig_path + Split-PathLikeEnvVar -Pattern @($dir) -Path $orig_path } function add_first_in_path($dir, $global) {