1
0
Fork 0

use different exit codes for different errors

pull/3633/head
Grégoire Paris 2013-08-01 23:57:39 +02:00 committed by Grégoire Paris
parent d85bad29d6
commit 9e30c9b403
1 changed files with 1 additions and 1 deletions

View File

@ -129,6 +129,6 @@ EOT
// Dispatch post-status-command
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_STATUS_CMD, true);
return ($errors || $unpushedChanges) ? 1 : 0;
return ($errors ? 1 : 0) + ($unpushedChanges ? 2 : 0);
}
}