mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-17 21:26:40 +02:00
Merge pull request #250 from SHyx0rmZ/fix-deploy-command-exit-code
Don't prematurely reset failedTasks count
This commit is contained in:
commit
09979f1a91
|
@ -243,7 +243,6 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
|
|||
protected function runNonDeploymentTasks($stage, Config $config, $title)
|
||||
{
|
||||
$tasksToRun = $config->getTasks($stage);
|
||||
self::$failedTasks = 0;
|
||||
|
||||
// PreDeployment Hook
|
||||
if ($stage == AbstractTask::STAGE_PRE_DEPLOY) {
|
||||
|
@ -284,6 +283,7 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
|
|||
|
||||
$tasks = 0;
|
||||
$completedTasks = 0;
|
||||
self::$failedTasks = 0;
|
||||
|
||||
foreach ($tasksToRun as $taskData) {
|
||||
$tasks++;
|
||||
|
|
Loading…
Reference in a new issue