Skip to content

Commit

Permalink
(chocolatey#1039) Improved automate-package-internalization.mdx's scr…
Browse files Browse the repository at this point in the history
…ipt for cases when chocolatey is not installed
  • Loading branch information
LeaDevelop committed Oct 28, 2024
1 parent 476251c commit e9f8420
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ Before starting, make sure you install Chocolatey Server on separate servers.
}
if ($null -eq (Get-Command -Name 'choco.exe' -ErrorAction SilentlyContinue)) {
Write-Warning "Chocolatey not installed. Cannot install standard packages."
Exit 1
Write-Error "Chocolatey not installed. Cannot install standard packages." -ErrorAction Stop
}
# Install Chocolatey.Server prereqs
Expand Down

0 comments on commit e9f8420

Please sign in to comment.