mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-27 07:46:27 +00:00
Sync #3419 hotfix to develop
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user