Skip to content

EspoCRM – Open Source CRM Application

add exit code

Yuri Kuznetsov8a76e70fcb1d
diff --git a/application/Espo/Core/Console/Commands/Upgrade.php b/application/Espo/Core/Console/Commands/Upgrade.php
index 1220e71b5f..d95efe121d 100644
--- a/application/Espo/Core/Console/Commands/Upgrade.php
+++ b/application/Espo/Core/Console/Commands/Upgrade.php
@@ -151,6 +151,8 @@ class Upgrade implements Command
if (!$packageFile) {
fwrite(STDOUT, "Error: Unable to download upgrade package.\n");
+ $io->setExitStatus(1);
+
return;
}
}