From 9e30c9b403ae1547aed15350e8de163472343de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 1 Aug 2013 23:57:39 +0200 Subject: [PATCH] use different exit codes for different errors --- src/Composer/Command/StatusCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/StatusCommand.php b/src/Composer/Command/StatusCommand.php index 6eca70e60..db5530638 100644 --- a/src/Composer/Command/StatusCommand.php +++ b/src/Composer/Command/StatusCommand.php @@ -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); } }