History

Use `grep -q` instead of `grep --quiet` to be more portable

Arthur Williams committed 5 years ago

Commit 24d35fa1 parent 39d586d1 file · +1 −1Browse files

Unified · Split

Makefile+1−1
@@ -224,7 +224,7 @@ endif · 223 unmodified lines
224224
225225 TCC_GIT_HASH=$(shell git rev-parse > /dev/null 2>&1 && git rev-parse --short HEAD || echo no)
226226 ifneq ($(TCC_GIT_HASH),no)
227−MODIFIED = $(shell git diff | grep --quiet +++ && echo "modified ")
227+MODIFIED = $(shell git diff | grep -q +++ && echo "modified ")
228228 $(X)tcc.o : DEFINES += -DTCC_GIT_HASH="\"$(MODIFIED)$(TCC_GIT_HASH)\""
229229 endif
230230

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t