From f15ebf73a90a127f85eadd81a939b43359a9d537 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 20 Mar 2024 16:55:12 +0100 Subject: [PATCH] Fix profile installation in case the profile does not exist --- scripts/Common/Config/powershell/profile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/Config/powershell/profile.ps1 b/scripts/Common/Config/powershell/profile.ps1 index 238b1d14..deb12f81 100644 --- a/scripts/Common/Config/powershell/profile.ps1 +++ b/scripts/Common/Config/powershell/profile.ps1 @@ -20,7 +20,7 @@ $null = New-Module { } Push-Location ~; - $profiles = $profiles | ForEach-Object { Resolve-Path -Relative $_ }; + $profiles = $profiles | ForEach-Object { [System.IO.Path]::GetRelativePath($(Get-Location), $_); }; if ($Category) { $profiles = $profiles | ForEach-Object { Join-Path (Split-Path -Parent $_) "profile.d" "$Category.ps1"; };