Fix profile installation in case the profile does not exist
This commit is contained in:
parent
90bd9d0e4f
commit
4ff12aae01
1 changed files with 1 additions and 1 deletions
|
@ -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