Skip to content

Commit

Permalink
fix(system): Fix argument passing to Split-PathLikeEnvVar() in depr…
Browse files Browse the repository at this point in the history
…ecated `strip_path()` (#5937)

Co-authored-by: Hsiao-nan Cheung <[email protected]>
  • Loading branch information
Capella87 and niheaven committed May 13, 2024
1 parent 5c411f3 commit 9839c8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- **scoop-search:** Catch error of parsing invalid manifest ([#5930](https://github.com/ScoopInstaller/Scoop/issues/5930))
- **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

Expand Down
2 changes: 1 addition & 1 deletion lib/system.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9839c8c

Please sign in to comment.