From 069782beb5cdc07fcdcd12865395e9ad20b43be4 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 24 Jul 2025 08:09:48 +0200 Subject: [PATCH] Fixed new-junction.ps1 --- scripts/new-junction.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/new-junction.ps1 b/scripts/new-junction.ps1 index 2458792d..b1773bea 100755 --- a/scripts/new-junction.ps1 +++ b/scripts/new-junction.ps1 @@ -20,10 +20,9 @@ param([string]$junction = "", [string]$targetDir = "") try { if ($junction -eq "" ) { $junction = Read-Host "Enter the new junction's path and filename" } - if ($targetDir -eq "" ) { $target = Read-Host "Enter the path to the target directory " } + if ($targetDir -eq "" ) { $targetDir = Read-Host "Enter the path to the target directory " } New-Item -path "$junction" -itemType Junction -value "$targetDir" - if ($lastExitCode -ne 0) { throw "Command 'New-Item' has failed" } "✅ New junction '$junction' created, linking to: 📂$targetDir" exit 0 # success