Skip to content

Commit

Permalink
Update install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster committed Mar 22, 2022
1 parent 781cf4d commit 6469813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ function link_current($versiondir) {
Remove-Item $currentdir -Recurse -Force -ErrorAction Stop
}

New-DirectoryJunction $currentdir, $versiondir
New-DirectoryJunction $currentdir $versiondir
return $currentdir
}

Expand Down Expand Up @@ -1287,7 +1287,7 @@ function Test-IsInsideContainer {
function New-DirectoryJunction($source, $target) {
Write-Host "Linking.. $source "
Write-Host "to"
Write-Host "$target"
Write-Host "taget = $target"
if (Test-IsInsideContainer) {
Write-Host "Calling mklink $env:COMSPEC /C mklink /J $source $target"
& "$env:COMSPEC" /c "mklink /j `"$source`" `"$target`"" | out-null
Expand Down

0 comments on commit 6469813

Please sign in to comment.