diff --git a/bin/scoop.ps1 b/bin/scoop.ps1 index 9d8aacdf90..41120401c2 100644 --- a/bin/scoop.ps1 +++ b/bin/scoop.ps1 @@ -11,6 +11,14 @@ set-strictmode -off reset_aliases +# TODO: remove this in a few weeks +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') diff --git a/lib/git.ps1 b/lib/git.ps1 index c4abb88835..d6fd6bff05 100644 --- a/lib/git.ps1 +++ b/lib/git.ps1 @@ -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"