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

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