diff --git a/scripts/Common/Software/PowerShell/Profile.ps1 b/scripts/Common/Software/PowerShell/Profile.ps1 index 833ce2ed..e3544449 100644 --- a/scripts/Common/Software/PowerShell/Profile.ps1 +++ b/scripts/Common/Software/PowerShell/Profile.ps1 @@ -75,9 +75,11 @@ $null = New-Module { Push-Location ~; - $profiles = $profiles | - ForEach-Object { [System.IO.Path]::GetRelativePath((Get-Location), $_) } | - ForEach-Object { "$HomeDir/$_" }; + $profiles = @( + $profiles | + ForEach-Object { [System.IO.Path]::GetRelativePath((Get-Location), $_) } | + ForEach-Object { "$HomeDir/$_" } + ); Pop-Location; }