From 8cf7791723bb25b1056f6acd1248c3f40cf9d1f9 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; }