From 2ff196467d21636f1506b832e60aa54ae006d5f8 Mon Sep 17 00:00:00 2001 From: Jonas8272 Date: Sat, 21 Nov 2026 15:27:00 +0000 Subject: [PATCH] Update add-bucket.ps1 --- add-bucket.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/add-bucket.ps1 b/add-bucket.ps1 index 4bffb7d..6b906f9 100644 --- a/add-bucket.ps1 +++ b/add-bucket.ps1 @@ -46,10 +46,11 @@ if (-not (Test-Command 'git')) { # 3. Bucket ------------------------------------------------------------------ $existing = scoop bucket list | Where-Object { $_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*' -} +} | Select-Object -First 1 if ($existing) { - Write-Host "Bucket '$($existing.Name)' is already added." -ForegroundColor Green + $BucketName = $existing.Name + Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green } else { Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan scoop bucket add $BucketName $BucketUrl