Fix sourcing of multiple files
This commit is contained in:
parent
779eedfaab
commit
192c47049d
1 changed files with 1 additions and 1 deletions
|
@ -11,5 +11,5 @@ $context.AddPowerShellProfileStatement(
|
|||
'# Profile Files',
|
||||
'$profilePath = "$PSScriptRoot/profile.d/*.ps1";',
|
||||
'if (Test-Path $profilePath) {',
|
||||
' . $profilePath;',
|
||||
' Get-Item $profilePath | Foreach-Item { . $_; };',
|
||||
'}') -join ([System.Environment]::NewLine));
|
||||
|
|
Loading…
Reference in a new issue