mirror of
https://github.com/symfony/recipes.git
synced 2026-09-16 01:26:25 +03:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user