Fix profile installation in case the profile does not exist

This commit is contained in:
Manuel Thalmann 2024-03-20 16:55:12 +01:00
parent 90bd9d0e4f
commit 4ff12aae01

View file

@ -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"; };