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 9fbd00b312
commit f15ebf73a9

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