Fixed minor cross-platfrom bug in Reload-MyScripts

这个提交包含在:
Gal Szkolnik 2020-10-03 16:23:08 -04:00
父节点 968b6c2bbb
当前提交 f4abdf1a2d
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -37,7 +37,7 @@ function getScriptName{param([string]$FullPath)
$local:myAliases = [ordered]@{}
if( Test-Path $(Join-Path $MyPSScriptRoot Aliases) ) {
Get-ChildItem $(Join-Path $MyPSScriptRoot Aliases) | ForEach-Object {
$myAliases[$_.BaseName] = Get-Content $_
$myAliases[$_.BaseName] = Get-Content $_.FullName
}
}