From: Arran Cudbard-Bell Date: Wed, 27 Oct 2021 19:31:50 +0000 (-0400) Subject: which -s is apparently nonstandard X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a8b092725c399132ff123f87b214f4e009ce1ea;p=thirdparty%2Ffreeradius-server.git which -s is apparently nonstandard --- diff --git a/src/bin/fuzzer.mk b/src/bin/fuzzer.mk index 68e905666df..043a923ebd7 100644 --- a/src/bin/fuzzer.mk +++ b/src/bin/fuzzer.mk @@ -34,7 +34,7 @@ TGT_LDLIBS := $(LIBS) .PHONY:src/tests/fuzzer-corpus/$(PROTOCOL) src/tests/fuzzer-corpus/$(PROTOCOL): ${Q}if [ ! -e $@ ]; then \ - if which -s flock; then flock -F /tmp/git-lfs-mutex git -c 'lfs.fetchexclude=' -c 'lfs.fetchinclude=src/tests/fuzzer-corpus/$(PROTOCOL).tar' lfs pull; \ + if which flock > /dev/null 2>&1; then flock -F /tmp/git-lfs-mutex git -c 'lfs.fetchexclude=' -c 'lfs.fetchinclude=src/tests/fuzzer-corpus/$(PROTOCOL).tar' lfs pull; \ else git -c 'lfs.fetchexclude=' -c 'lfs.fetchinclude=src/tests/fuzzer-corpus/$(PROTOCOL).tar' lfs pull; fi; \ cd src/tests/fuzzer-corpus; \ tar -xf $(PROTOCOL).tar; \