bug #67 fix error exit code (xabbuh)

This PR was merged into the master branch.

Discussion
----------

fix error exit code

In case that the server could not start we should indicate the failure
with a non-zero exit code.

This addresses @stof's comment in https://github.com/symfony/recipes/pull/54#discussion_r116276643.

Commits
-------

9acb162 fix error exit code
This commit is contained in:
Fabien Potencier
2017-05-16 07:03:19 -07:00
+1 -1
View File
@@ -13,7 +13,7 @@ sf_console:
serve_as_sf: sf_console
@test -f $(CONSOLE) && $(CONSOLE)|grep server:start > /dev/null || ${MAKE} serve_as_php
@$(CONSOLE) server:start || exit 0
@$(CONSOLE) server:start || exit 1
@printf "Quit the server with \033[32;49mbin/console server:stop.\033[39m\n"