Skip to content

Commit 644b80a

Browse files
committed
Fix the make error when command doesn't exist
1 parent 87a2e80 commit 644b80a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symfony/framework-bundle/3.3/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $(CONSOLE):
1111
@exit
1212

1313
serve_as_sf: $(CONSOLE)
14-
@$(CONSOLE)|grep server:start > /dev/null
14+
@$(CONSOLE)|grep server:he > /dev/null || ${MAKE} serve_as_php
1515
@$(CONSOLE) server:start || exit 0
1616

1717
@echo "Quit the server with \033[32;49mbin/console server:stop.\033[39m"
@@ -23,5 +23,5 @@ serve_as_php:
2323
php -S 127.0.0.1:8000 -t web
2424

2525
serve:
26-
@${MAKE} serve_as_sf || ${MAKE} serve_as_php
26+
@${MAKE} serve_as_sf
2727
.PHONY: serve

0 commit comments

Comments
 (0)