Skip to content

Commit 0f84b45

Browse files
Fix Join-Path call for PowerShell 5.1 compatibility
Join-Path only accepts two path arguments in PS 5.1. Chain two Join-Path calls instead of passing three positional arguments. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 099fc66 commit 0f84b45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool/migration/Tests/PSGetMigration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Describe 'PSGet Migration Tool' {
55

66
BeforeAll {
77
# Dot-source the script to load all functions into the current scope
8-
. (Join-Path $PSScriptRoot '..' 'ConvertTo-PSResourceGet.ps1')
8+
. (Join-Path (Join-Path $PSScriptRoot '..') 'ConvertTo-PSResourceGet.ps1')
99

1010
# Helper to create temp script files
1111
function New-TempScript {

0 commit comments

Comments
 (0)