aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Limonciello <superm1@gmail.com>2023-11-26 17:57:54 +0000
committerMario Limonciello <superm1@gmail.com>2023-11-26 17:57:54 +0000
commit9fdcf6394be2f3e641dab82365d4c0693177003e (patch)
tree0f672b3cde3df8abc9268ab21397da7e47510a18
parentf6d61dedddd593ef0e0619e6313c95034ba5a2f8 (diff)
parentc6823ce2e54879bf26c42ee7f1bb94fc571fddef (diff)
downloadlinux-firmware-9fdcf6394be2f3e641dab82365d4c0693177003e.tar.gz
Merge branch 'robot/patch-0-1701018572' into 'main'
robot/patch-0-1701018572 See merge request kernel-firmware/linux-firmware!79
-rw-r--r--Makefile2
-rwxr-xr-xcopy-firmware.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1d28d8aa..f7e63237 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ FIRMWAREDIR = /lib/firmware
all:
check:
- @if ! which pre-commit >/dev/null; then \
+ @if ! command -v pre-commit >/dev/null; then \
echo "Install pre-commit to check files"; \
exit 1; \
fi
diff --git a/copy-firmware.sh b/copy-firmware.sh
index f9b1f0ff..6f2268b0 100755
--- a/copy-firmware.sh
+++ b/copy-firmware.sh
@@ -69,7 +69,7 @@ if [ -z "$destdir" ]; then
exit 1
fi
-if ! which rdfind 2>/dev/null >/dev/null; then
+if ! command -v rdfind >/dev/null; then
echo "ERROR: rdfind is not installed"
exit 1
fi