mirror of
https://codefloe.com/Jonas8272/scoop-bucket.git
synced 2026-11-30 23:09:35 +00:00
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:
1 parent
ed16504cf5
commit
3242d41d57
6 files changed
+13
-7
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user