From 899b58261bf6082fb2f78cf5ea48e461cdacb2a4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 28 Aug 2024 04:39:15 +0200 Subject: [PATCH] Fix non-functioning profile script --- scripts/Common/Software/PowerShell/Profile.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; }