From 3f100b72b89f1727d11897e4df7d961620473a0c Mon Sep 17 00:00:00 2001 From: Tyrion Liu Date: Tue, 16 Sep 2025 23:44:35 +0800 Subject: [PATCH] fix(scoop-update): normalize `$currentdir` to prevent unnecessary overwrite warning ScoopInstaller/Scoop#6277 --- libexec/scoop-update.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/scoop-update.ps1 b/libexec/scoop-update.ps1 index 9d41906eca..7c0163172a 100644 --- a/libexec/scoop-update.ps1 +++ b/libexec/scoop-update.ps1 @@ -75,7 +75,7 @@ function Sync-Scoop { if (!(Test-GitAvailable)) { abort "Scoop uses Git to update itself. Run 'scoop install git' and try again." } Write-Host 'Updating Scoop...' - $currentdir = versiondir 'scoop' 'current' + $currentdir = Convert-Path (versiondir 'scoop' 'current') if (!(Test-Path "$currentdir\.git")) { $newdir = "$currentdir\..\new" $olddir = "$currentdir\..\old"