Blame SOURCES/0070-shellcheck-Use-command-instead-of-type.patch

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