mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
Fix missing "\" when building dirpath to psmodules
Join-Path won't add "\"'s without the use of a delimeter. In this case there is no delimiter and as a result the script will fail when it tries to look up $CmderModulePath.
This commit is contained in:
parent
160fbad621
commit
6978bb7417
2
vendor/profile.ps1
vendored
2
vendor/profile.ps1
vendored
@ -18,7 +18,7 @@ if(!$PSScriptRoot) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Add Cmder modules directory to the autoload path.
|
# Add Cmder modules directory to the autoload path.
|
||||||
$CmderModulePath = Join-path $PSScriptRoot "psmodules/"
|
$CmderModulePath = Join-path $PSScriptRoot "\psmodules/"
|
||||||
|
|
||||||
if( -not $env:PSModulePath.Contains($CmderModulePath) ){
|
if( -not $env:PSModulePath.Contains($CmderModulePath) ){
|
||||||
$env:PSModulePath = $env:PSModulePath.Insert(0, "$CmderModulePath;")
|
$env:PSModulePath = $env:PSModulePath.Insert(0, "$CmderModulePath;")
|
||||||
|
Loading…
Reference in New Issue
Block a user