mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-23 05:46:30 +00:00
git.ps1: Don't use proxy if it's set to "none"
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
function git_proxy_cmd {
|
||||
$proxy = $(scoop config proxy)
|
||||
$cmd = "git $($args | ForEach-Object { "$_ " })"
|
||||
if($proxy) {
|
||||
if($proxy -and $proxy -ne 'none') {
|
||||
$cmd = "SET HTTPS_PROXY=$proxy&&SET HTTP_PROXY=$proxy&&$cmd"
|
||||
}
|
||||
& "$env:COMSPEC" /c $cmd
|
||||
|
||||
Reference in New Issue
Block a user