From 24d35faed2ec556444d7f92f4ad205c8e715a79b Mon Sep 17 00:00:00 2001 From: Arthur Williams Date: Tue, 29 Jun 2021 00:46:40 -0500 Subject: [PATCH] Use `grep -q` instead of `grep --quiet` to be more portable --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9d0bc3b1..2a83a126 100644 --- a/Makefile +++ b/Makefile @@ -224,7 +224,7 @@ endif TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no) ifneq ($(TCC_GIT_HASH),no) -MODIFIED = $(shell git diff | grep --quiet +++ && echo "modified ") +MODIFIED = $(shell git diff | grep -q +++ && echo "modified ") $(X)tcc.o : DEFINES += -DTCC_GIT_HASH="\"$(MODIFIED)$(TCC_GIT_HASH)\"" endif