Blame SPECS/0070-shellcheck-Use-command-instead-of-type.patch
|
Packit |
8ea169 |
From cbc15ea4a2be99a980a0f762c45b09055ab78527 Mon Sep 17 00:00:00 2001
|
|
Packit |
8ea169 |
From: Martin Kutlak <mkutlak@redhat.com>
|
|
Packit |
8ea169 |
Date: Wed, 12 Dec 2018 16:20:09 +0100
|
|
Packit |
8ea169 |
Subject: [PATCH] shellcheck: Use command instead of type
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
type undefined in POSIX sh.
|
|
Packit |
8ea169 |
Replacing 'command -v' is similar to the builtin 'type' and is defined in POSIX.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
Fixes ShellCheck warning SC2039.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
|
|
Packit |
8ea169 |
---
|
|
Packit |
8ea169 |
src/plugins/abrt-action-analyze-vulnerability.in | 4 ++--
|
|
Packit |
8ea169 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
diff --git a/src/plugins/abrt-action-analyze-vulnerability.in b/src/plugins/abrt-action-analyze-vulnerability.in
|
|
Packit |
8ea169 |
index 7532b72c..4cae52e6 100755
|
|
Packit |
8ea169 |
--- a/src/plugins/abrt-action-analyze-vulnerability.in
|
|
Packit |
8ea169 |
+++ b/src/plugins/abrt-action-analyze-vulnerability.in
|
|
Packit |
8ea169 |
@@ -2,8 +2,8 @@
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Do we have the tools we need?
|
|
Packit |
8ea169 |
# If no, exit silently.
|
|
Packit |
8ea169 |
-type @GDB@ >/dev/null 2>&1 || exit 0
|
|
Packit |
8ea169 |
-type eu-readelf >/dev/null 2>&1 || exit 0
|
|
Packit |
8ea169 |
+command -v @GDB@ >/dev/null 2>&1 || exit 0
|
|
Packit |
8ea169 |
+command -v eu-readelf >/dev/null 2>&1 || exit 0
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Do we have coredump?
|
|
Packit |
8ea169 |
test -r coredump || {
|
|
Packit |
8ea169 |
--
|
|
Packit |
8ea169 |
2.26.2
|
|
Packit |
8ea169 |
|