Skip to content

Commit

Permalink
fix: force to add new main bucket (#3419)
Browse files Browse the repository at this point in the history
* fix: force to add new main bucket

* fix(git): use internal get config function
  • Loading branch information
h404bi authored and r15ch13 committed Apr 30, 2019
1 parent 2db651c commit fd5d2fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/scoop.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ set-strictmode -off

reset_aliases

# TODO: remove this in a few weeks

This comment has been minimized.

Copy link
@SamB

SamB Feb 1, 2020

It's been a few weeks now, so at least update the comment now...

if ((Get-LocalBucket) -notcontains 'main') {
warn "The main bucket of Scoop has been separated to 'https://github.com/scoopinstaller/scoop-main'"
warn "You don't have the main bucket added, adding main bucket for you..."
add_bucket 'main'
exit
}

$commands = commands
if ('--version' -contains $cmd -or (!$cmd -and '-v' -contains $args)) {
Push-Location $(versiondir 'scoop' 'current')
Expand Down
2 changes: 1 addition & 1 deletion lib/git.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function git_proxy_cmd {
$proxy = $(scoop config proxy)
$proxy = get_config 'proxy'
$cmd = "git $($args | ForEach-Object { "$_ " })"
if($proxy -and $proxy -ne 'none') {
$cmd = "SET HTTPS_PROXY=$proxy&&SET HTTP_PROXY=$proxy&&$cmd"
Expand Down

0 comments on commit fd5d2fe

Please sign in to comment.