mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
fix error exit code
In case that the server could not start we should indicate the failure with a non-zero 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