Skip to content

Commit

Permalink
choco: use helper Set-PowershellExitCode to set exit status of packag…
Browse files Browse the repository at this point in the history
…e install

this replaces use of Exit with Set-PowershellExitCode as requested in the review comments
  • Loading branch information
anjannath authored and praveenkumar committed Apr 26, 2023
1 parent 57001a8 commit d7e396c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/chocolatey/crc/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ if (Test-ProcessAdminRights) {
New-VsockGuestCommunicationRegistry
} else {
Write-Host "CRC needs administrator privileges to enable Hyper-V, create new group and add current user to needed groups, please run the installation as administrator"
Exit 1
Set-PowershellExitCode 1
}

0 comments on commit d7e396c

Please sign in to comment.