You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a CraftCMS v3 console command using craft, a failure results in an exit code of 0. This can give false positives to anyone using this in an automated fashion for any reason.
Steps to reproduce
Run a craft console command that results in a failure, such as craft install/plugin fakepluginnotreal
Examine the return value reported by the operating system/shell. For a failure, it should return something other than zero.
Example:
$ craft install/plugin fakepluginnotreal
*** installing fakepluginnotreal
*** failed to install fakepluginnotreal: No plugin exists with the handle "fakepluginnotreal".
$ echo $?
0
Description
When running a CraftCMS v3 console command using
craft
, a failure results in an exit code of 0. This can give false positives to anyone using this in an automated fashion for any reason.Steps to reproduce
craft
console command that results in a failure, such ascraft install/plugin fakepluginnotreal
Example:
Additional info
3.0.15
PHP 7.2.8-1+ubuntu16.04.1+deb.sury.org+1
mysql
-MySQL 5.7.23-0ubuntu0.16.04.1
The text was updated successfully, but these errors were encountered: