mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Fix error from profile.d PowerShell scripts
This commit is contained in:
commit
3b6e1cbf5f
8
vendor/profile.ps1
vendored
8
vendor/profile.ps1
vendored
@ -123,11 +123,11 @@ if (-not (Test-Path -PathType container "$ENV:CMDER_ROOT\config\profile.d")) {
|
||||
|
||||
Push-Location $ENV:CMDER_ROOT\config\profile.d
|
||||
foreach ($x in Get-ChildItem *.psm1) {
|
||||
Write-Verbose Write-Host Sourcing $x
|
||||
Write-Verbose "Sourcing $x"
|
||||
Import-Module $x
|
||||
}
|
||||
foreach ($x in Get-ChildItem *.ps1) {
|
||||
Write-Verbose Write-Host Sourcing $x
|
||||
Write-Verbose "Sourcing $x"
|
||||
. $x
|
||||
}
|
||||
Pop-Location
|
||||
@ -137,11 +137,11 @@ Pop-Location
|
||||
if ($ENV:CMDER_USER_CONFIG -ne "" -and (Test-Path "$ENV:CMDER_USER_CONFIG\profile.d")) {
|
||||
Push-Location $ENV:CMDER_USER_CONFIG\profile.d
|
||||
foreach ($x in Get-ChildItem *.psm1) {
|
||||
Write-Verbose Write-Host Sourcing $x
|
||||
Write-Verbose "Sourcing $x"
|
||||
Import-Module $x
|
||||
}
|
||||
foreach ($x in Get-ChildItem *.ps1) {
|
||||
Write-Verbose Write-Host Sourcing $x
|
||||
Write-Verbose "Sourcing $x"
|
||||
. $x
|
||||
}
|
||||
Pop-Location
|
||||
|
Loading…
Reference in New Issue
Block a user