Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fc1943s committed Jan 4, 2025
1 parent 1e92a73 commit 4d9e4d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ function EnsureSymbolicLink([string] $Path, [string] $Target) {
New-Item $Parent -ItemType Directory | Out-Null
}

$ParentTarget = (Get-Item $Parent).Target
if ($ParentTarget) {
$Leaf = Split-Path $Path -Leaf
$Path = Join-Path $ParentTarget $Leaf
}

if (Test-Path $Path) {
$attr = (Get-Item $Path).Attributes
if ($null -ne $attr `
Expand Down

0 comments on commit 4d9e4d3

Please sign in to comment.