diff --git a/Boxstarter.TestRunner/Bootstrap.ps1 b/Boxstarter.TestRunner/Bootstrap.ps1 index 77045c6d..c3e7dd65 100644 --- a/Boxstarter.TestRunner/Bootstrap.ps1 +++ b/Boxstarter.TestRunner/Bootstrap.ps1 @@ -2,7 +2,6 @@ function Bootstrap-Boxstarter { if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){ Write-Output "Chocolatey not installed. Downloading and installing..." $env:ChocolateyInstall = "$env:programdata\chocolatey" - New-Item $env:ChocolateyInstall -Force -type directory | Out-Null Get-HttpToFile "https://chocolatey.org/install.ps1" "$env:temp\choco.ps1" . "$env:temp\choco.ps1" } diff --git a/BuildScripts/bootstrapper.ps1 b/BuildScripts/bootstrapper.ps1 index 625fcec1..645baf75 100644 --- a/BuildScripts/bootstrapper.ps1 +++ b/BuildScripts/bootstrapper.ps1 @@ -82,7 +82,6 @@ function Check-Chocolatey { } try { $env:ChocolateyInstall = "$env:programdata\chocolatey" - New-Item $env:ChocolateyInstall -Force -type directory | Out-Null $url="https://chocolatey.org/api/v2/package/chocolatey/" $wc=new-object net.webclient $wp=[system.net.WebProxy]::GetDefaultProxy()