From 4d9e4d307ad87acb90fb602e751b111d78e91105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=94=84=EB=A6=AC=EB=A7=88?= Date: Sat, 4 Jan 2025 17:50:19 -0300 Subject: [PATCH] tests --- scripts/core.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/core.ps1 b/scripts/core.ps1 index aaf30b47..55f100e4 100644 --- a/scripts/core.ps1 +++ b/scripts/core.ps1 @@ -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 `