Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix choco not failing when an error occurs during install or upgrade #7182

Merged

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Jun 29, 2021

The powershell script used for installation and upgrade
do not stop when an error occurs in some command.
This causes chocolatey to proceed the installation/upgrade,
leading to a corrupted/incomplete installation.

Tell powershell to interrupt as soon as an error is hit.

Fixes #7181

The powershell script used for installation and upgrade
do not stop when an error occurs in some command.
This causes chocolatey to proceed the installation/upgrade,
leading to a corrupted/incomplete installation.

Tell powershell to interrupt as soon as an error is hit.
@theopolis theopolis merged commit eec11f4 into osquery:master Jun 30, 2021
@mike-myers-tob mike-myers-tob deleted the stefano/fix/chocolatey-files-in-use branch July 16, 2021 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chocolatey install/upgrade leaving a corrupted installation
3 participants