From 34affd75c46317c9af3122a52de0258f55753813 Mon Sep 17 00:00:00 2001 From: Bhadra Date: Thu, 8 Jan 2026 19:59:51 +0530 Subject: [PATCH] fix(windows): fix install script directory copy to prevent nesting - Remove existing directories before copying to prevent nested folder structures (e.g., bin/bin) - This fixes 'Unknown command' errors after installation --- windows/install.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/windows/install.ps1 b/windows/install.ps1 index 2bca337..95b829c 100644 --- a/windows/install.ps1 +++ b/windows/install.ps1 @@ -270,6 +270,10 @@ function Install-Mole { if (Test-Path $src) { try { if ((Get-Item $src).PSIsContainer) { + # For directories, remove destination first if exists to avoid nesting + if (Test-Path $dst) { + Remove-Item -Path $dst -Recurse -Force + } Copy-Item -Path $src -Destination $dst -Recurse -Force } else {