Sync #3419 hotfix to develop

This commit is contained in:
Richard Kuhnt
2019-04-30 10:55:32 +02:00
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -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')
+1 -1
View File
@@ -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"