Skip to content

Commit

Permalink
fix #889
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Jun 3, 2016
1 parent 5ac3f09 commit c95b843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function fullpath($path) { # should be ~ rooted
function relpath($path) { "$($myinvocation.psscriptroot)\$path" } # relative to calling script
function friendly_path($path) {
$h = $home; if(!$h.endswith('\')) { $h += '\' }
if($h -eq '\') { return '\' } # when running as LocalSystem (see #889)
if($h -eq '\') { return $path }
return "$path" -replace ([regex]::escape($h)), "~\"
}
function is_local($path) {
Expand Down

0 comments on commit c95b843

Please sign in to comment.