From 20169f80b72fbb73ec98664e85c82f0946b89868 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 17 Jul 2025 11:52:44 +0000 Subject: [PATCH] Add -Force to Move-Item in mago.ps1 to handle workflow reruns Co-authored-by: shivammathur <1571086+shivammathur@users.noreply.github.com> --- src/scripts/tools/mago.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/tools/mago.ps1 b/src/scripts/tools/mago.ps1 index 33417595..5eeb392a 100644 --- a/src/scripts/tools/mago.ps1 +++ b/src/scripts/tools/mago.ps1 @@ -30,7 +30,7 @@ Function Add-Mago() { $url = "https://github.com/carthage-software/mago/releases/download/$mago_tag/mago-$mago_tag-$arch_name-pc-windows-msvc.zip" Get-File -Url $url -OutFile $bin_dir\mago.zip >$null 2>&1 Expand-Archive -Path $bin_dir\mago.zip -DestinationPath $bin_dir\mago -Force >$null 2>&1 - Move-Item -Path $bin_dir\mago\mago-$mago_tag-$arch_name-pc-windows-msvc\mago.exe -Destination $bin_dir\mago.exe + Move-Item -Path $bin_dir\mago\mago-$mago_tag-$arch_name-pc-windows-msvc\mago.exe -Destination $bin_dir\mago.exe -Force Add-ToProfile $current_profile 'mago' "New-Alias mago $bin_dir\mago.exe" Add-Log $tick "mago" "Added mago $mago_tag" } \ No newline at end of file