Created
January 10, 2017 22:15
-
-
Save yellowandy/703a609a14e4acade508915075c92fa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In ShadowUpgrader | |
protected function doHealthcheck() | |
{ | |
//Inherits from CLI Parent | |
$parentHealthCheckPass = parent::doHealthcheck(); | |
//Failures found | |
if(!$parentHealthCheckPass && $this->context['force']) { | |
echo "Health check failed (red flags). Please refer to the log file {$this->context['log']}\n"; | |
echo "Option force was specified - not aborting due to failed healthcheck\n"; | |
return true; | |
} | |
return $parentHealthCheckPass; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment