Skip to content

Commit 9839c8c

Browse files
Capella87niheaven
andcommitted
fix(system): Fix argument passing to Split-PathLikeEnvVar() in deprecated strip_path() (#5937)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
1 parent 5c411f3 commit 9839c8c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- **scoop-search:** Catch error of parsing invalid manifest ([#5930](https://github.com/ScoopInstaller/Scoop/issues/5930))
66
- **autoupdate:** Copy `PSCustomObject`-type properties within `autoupdate` to prevent reference changes ([#5934](https://github.com/ScoopInstaller/Scoop/issues/5934))
7+
- **system:** Fix argument passing to `Split-PathLikeEnvVar()` in deprecated `strip_path()` ([#5937](https://github.com/ScoopInstaller/Scoop/issues/5937))
78

89
## [v0.4.1](https://github.com/ScoopInstaller/Scoop/compare/v0.4.0...v0.4.1) - 2024-04-25
910

lib/system.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function env($name, $global, $val) {
162162

163163
function strip_path($orig_path, $dir) {
164164
Show-DeprecatedWarning $MyInvocation 'Split-PathLikeEnvVar'
165-
Split-PathLikeEnvVar -Name $dir -Path $orig_path
165+
Split-PathLikeEnvVar -Pattern @($dir) -Path $orig_path
166166
}
167167

168168
function add_first_in_path($dir, $global) {

0 commit comments

Comments
 (0)