mirror of
https://codefloe.com/Jonas8272/scoop-bucket.git
synced 2026-11-30 23:09:35 +00:00
Update add-bucket.ps1
This commit is contained in:
1 parent
686ae13647
commit
2ff196467d
1 file changed
+3
-2
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user