]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(Makefile): execute command -v instead of which
authorHenrik Gombos <henrik99999@gmail.com>
Sun, 11 Jun 2023 23:04:27 +0000 (23:04 +0000)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 12 Jun 2023 11:52:41 +0000 (07:52 -0400)
Makefile
test/TEST-62-SKIPCPIO/test.sh

index 1224c07eae7e8e4cc25dc491fddc5615900e4958..3ddc60990d16dcac5d94be670494910e9fc2325b 100644 (file)
--- 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
 
index e263a6750a7e0b0d3bceda7d8c96f876ff694ce4..fa6183286b9e44de713dd308c36c5ee29fc81bba 100755 (executable)
@@ -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() {