Skip to content

Commit

Permalink
Fix chocolatey-community#1099 by warning on plugin repair failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyApuzzo committed Sep 11, 2018
1 parent a740c68 commit 9e26fdc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion automatic/vagrant/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ $packageArgs = @{
Install-ChocolateyPackage @packageArgs

Update-SessionEnvironment
vagrant plugin repair #https://github.com/chocolatey/chocolatey-coreteampackages/issues/1024

$ErrorActionPreference = 'Continue' #https://github.com/chocolatey/chocolatey-coreteampackages/issues/1099
vagrant plugin repair #https://github.com/chocolatey/chocolatey-coreteampackages/issues/1024
if ($LastExitCode -ne 0) { #https://github.com/chocolatey/chocolatey-coreteampackages/issues/1099
Write-Host "WARNING: Plugin repair failed, run 'vagrant plugin expunge --reinstall' after rebooting."
}
$LastExitCode = 0

0 comments on commit 9e26fdc

Please sign in to comment.