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