Fix profile installation in case the profile does not exist
This commit is contained in:
parent
9fbd00b312
commit
f15ebf73a9
|
@ -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"; };
|
||||
|
|
Loading…
Reference in a new issue