install scripts: update the bucket if it is already added

Without this, a stale local bucket clone cannot see newly added apps
(e.g. "Couldn't find manifest for 'netflix'"). Run scoop update when the
bucket already exists.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XFn3QekarqiDEYnrbupCyz
This commit is contained in:
Jonas8272andClaude Sonnet 5.5 committed 2026-11-22 06:04:52 +00:00
1 parent ed16504cf5
commit 3242d41d57
6 files changed
+13 -7

No files matched your search

+2 -1
View File
@@ -75,7 +75,8 @@ $existing = scoop bucket list | Where-Object {
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
+2 -1
View File
@@ -69,7 +69,8 @@ $existing = scoop bucket list | Where-Object {
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
+2 -1
View File
@@ -65,7 +65,8 @@ $existing = scoop bucket list | Where-Object {
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
+2 -1
View File
@@ -75,7 +75,8 @@ $existing = scoop bucket list | Where-Object {
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
+2 -1
View File
@@ -65,7 +65,8 @@ $existing = scoop bucket list | Where-Object {
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
+3 -2
View File
@@ -75,14 +75,15 @@ $existing = scoop bucket list | Where-Object {
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added." -ForegroundColor Green
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." }
}
# 4. The app -----------------------------------------------------------------
# 4. The app ------------------------------------------------------------------
Write-Host ''
Write-Host "Installing $App..." -ForegroundColor Cyan
scoop install "$BucketName/$App"