Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 61c2fd8

Browse files
committed
Fixed find command
Signed-off-by: Marco Pracucci <marco@pracucci.com>
1 parent 38809ae commit 61c2fd8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
JSONNET_FMT := jsonnetfmt
44

5-
# Support gsed on OSX (installed via brew), falling back to sed. On Linux
6-
# systems gsed won't be installed, so will use sed as expected.
5+
# Support gsed/gfind on OSX (installed via brew), falling back to sed/find. On Linux
6+
# systems gsed/gfind won't be installed, so will use sed/gfind as expected.
77
SED ?= $(shell which gsed 2>/dev/null || which sed)
8+
FIND ?= $(shell which gfind 2>/dev/null || which find)
89

910
lint: lint-mixin lint-playbooks
1011

@@ -56,7 +57,7 @@ test-readme:
5657
PAGER=cat tk show environments/default
5758

5859
clean-white-noise:
59-
@find -E . -type f -regex '.*(md|libsonnet)' -print | \
60+
@$(FIND) . -type f -regextype posix-extended -regex '.*(md|libsonnet)' -print | \
6061
SED_BIN="$(SED)" xargs ./scripts/cleanup-white-noise.sh
6162

6263
check-white-noise: clean-white-noise

0 commit comments

Comments
 (0)