diff --git a/src/MergePlugin.php b/src/MergePlugin.php index a9af5b6..6fab9e9 100644 --- a/src/MergePlugin.php +++ b/src/MergePlugin.php @@ -388,6 +388,9 @@ public function onPostInstallOrUpdate(ScriptEvent $event) '' ); file_put_contents($lock, $lockBackup); + // propagate error to the parent process to allow proper status code being returned + // this is important for any CI/CD tools to properly recognize if an error occurred in this phase + exit($status); } } // @codeCoverageIgnoreEnd