We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ea06a commit a24f95aCopy full SHA for a24f95a
ext/phar/Makefile.frag
@@ -31,7 +31,7 @@ $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc
31
32
33
TEST_PHP_EXECUTABLE = $(shell $(PHP_EXECUTABLE) -v 2>&1)
34
-TEST_PHP_EXECUTABLE_RES = $(shell echo "$(TEST_PHP_EXECUTABLE)" | grep -c 'Exec format error')
+TEST_PHP_EXECUTABLE_RES = $(shell [ -z "$(TEST_PHP_EXECUTABLE)" ] || echo "$(TEST_PHP_EXECUTABLE)" | grep -q "Exec format error" && echo 1 || echo 0)
35
36
$(builddir)/phar.php: $(srcdir)/build_precommand.php $(srcdir)/phar/*.inc $(srcdir)/phar/*.php $(SAPI_CLI_PATH)
37
-@(echo "Generating phar.php"; \
0 commit comments