Mercurial > hg > batmud > maputils
changeset 2492:972cd6162ea9
Redirect error outputs to /dev/null when detecting PHP etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 May 2023 11:14:20 +0300 |
parents | 0fbd68ddd363 |
children | c43a4607dbc0 |
files | world/Makefile |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/world/Makefile Tue Apr 18 12:54:06 2023 +0300 +++ b/world/Makefile Tue May 16 11:14:20 2023 +0300 @@ -4,9 +4,9 @@ ### ### Detect if we have some things ### -HAVE_CURL ?= $(shell curl --version > /dev/null && echo "yes") -HAVE_WGET ?= $(shell wget --version > /dev/null && echo "yes") -HAVE_PHP ?= $(shell php --version > /dev/null && echo "yes") +HAVE_CURL ?= $(shell curl --version > /dev/null 2>&1 && echo "yes") +HAVE_WGET ?= $(shell wget --version > /dev/null 2>&1 && echo "yes") +HAVE_PHP ?= $(shell php --version > /dev/null 2>&1 && echo "yes") ifeq ($(HAVE_CURL),yes) HTTPGET ?= curl -o