From: Henrik Gombos Date: Sun, 11 Jun 2023 23:04:27 +0000 (+0000) Subject: fix(Makefile): execute command -v instead of which X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4235c035ff1abad0c22125c26cab813c42b29da0;p=thirdparty%2Fdracut.git fix(Makefile): execute command -v instead of which --- diff --git a/Makefile b/Makefile index 1224c07ea..3ddc60990 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,9 @@ ifeq ($(DRACUT_FULL_VERSION),) DRACUT_FULL_VERSION = $(DRACUT_VERSION) endif -HAVE_SHELLCHECK ?= $(shell which shellcheck >/dev/null 2>&1 && echo yes) -HAVE_SHFMT ?= $(shell which shfmt >/dev/null 2>&1 && echo yes) -HAVE_RPMBUILD ?= $(shell which rpmbuild >/dev/null 2>&1 && echo yes) +HAVE_SHELLCHECK ?= $(shell command -v shellcheck >/dev/null 2>&1 && echo yes) +HAVE_SHFMT ?= $(shell command -v shfmt >/dev/null 2>&1 && echo yes) +HAVE_RPMBUILD ?= $(shell command -v rpmbuild >/dev/null 2>&1 && echo yes) -include Makefile.inc diff --git a/test/TEST-62-SKIPCPIO/test.sh b/test/TEST-62-SKIPCPIO/test.sh index e263a6750..fa6183286 100755 --- a/test/TEST-62-SKIPCPIO/test.sh +++ b/test/TEST-62-SKIPCPIO/test.sh @@ -6,7 +6,7 @@ TEST_DESCRIPTION="test skipcpio" test_check() { - which cpio dd truncate find sort diff &> /dev/null + cpio dd truncate find sort diff &> /dev/null } skipcpio_simple() {