Skip to content

Commit

Permalink
Makefile: use grep -E instead of egrep (#103) (#112)
Browse files Browse the repository at this point in the history
Running egrep on modern systems prints

    egrep: warning: egrep is obsolescent; using grep -E

(cherry picked from commit 5fe565b)

Co-authored-by: Maxwell G <[email protected]>
  • Loading branch information
patchback[bot] and gotmax23 authored Jul 13, 2023
1 parent 0e12925 commit e10a78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docsite/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ KEYWORD_DUMPER=../../hacking/build-ansible.py document-keywords
CONFIG_DUMPER=../../hacking/build-ansible.py document-config
GENERATE_CLI=../../hacking/build-ansible.py generate-man
COLLECTION_DUMPER=../../hacking/build-ansible.py collection-meta
ifeq ($(shell echo $(OS) | egrep -ic 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
ifeq ($(shell echo $(OS) | grep -Eic 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
CPUS ?= $(shell sysctl hw.ncpu|awk '{print $$2}')
else
CPUS ?= $(shell nproc)
Expand Down

0 comments on commit e10a78c

Please sign in to comment.