Skip to content

Commit

Permalink
chocolatey upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Powell <thomas.powell@progress.com>
  • Loading branch information
tpowell-progress committed May 8, 2024
1 parent 205f99e commit 8b9e4fb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions omnibus/omnibus-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ $ErrorActionPreference = "Stop"
# install chocolatey
function installChoco {

#if (!(Test-Path "$($env:ProgramData)\chocolatey\choco.exe")) {
# Write-Output "Chocolatey is not installed, proceeding to install"
if (!(Test-Path "$($env:ProgramData)\chocolatey\choco.exe")) {
Write-Output "Chocolatey is not installed, proceeding to install"
try {
write-output "installing in 3..2..1.."
Set-ExecutionPolicy Bypass -Scope Process -Force
Expand All @@ -16,11 +16,12 @@ function installChoco {
catch {
Write-Error $_.Exception.Message
}
#}
}

#else {
# Write-Output "Chocolatey is already installed"
#}
else {
Write-Output "Chocolatey is already installed, upgrading"
choco upgrade chocolatey
}
}

installChoco
Expand Down

0 comments on commit 8b9e4fb

Please sign in to comment.