Skip to content

Commit

Permalink
Fixing Chocolatey unattended upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
lietu committed Dec 20, 2019
1 parent 39daf24 commit d3b100e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/install-chocolatey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if (Get-Command choco.exe -ErrorAction SilentlyContinue) {
Write-Output "Chocolatey already installed, upgrading instead."
choco.exe upgrade chocolatey
choco.exe upgrade -y chocolatey
} else {
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}

0 comments on commit d3b100e

Please sign in to comment.