Skip to content

Commit

Permalink
fix(Makefile): execute command -v instead of which
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik66 authored and LaszloGombos committed Jun 12, 2023
1 parent e2f961a commit 4235c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/TEST-62-SKIPCPIO/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4235c03

Please sign in to comment.