Skip to content

Commit

Permalink
Fix missing "\" when building dirpath to psmodules
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
liftir committed Apr 9, 2016
1 parent 160fbad commit 6978bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(!$PSScriptRoot) {
}

# Add Cmder modules directory to the autoload path.
$CmderModulePath = Join-path $PSScriptRoot "psmodules/"
$CmderModulePath = Join-path $PSScriptRoot "\psmodules/"

if( -not $env:PSModulePath.Contains($CmderModulePath) ){
$env:PSModulePath = $env:PSModulePath.Insert(0, "$CmderModulePath;")
Expand Down

0 comments on commit 6978bb7

Please sign in to comment.