Blame SOURCES/0068-shellcheck-Suppress-shellcheck-warning-SC1090.patch

8e2d79
From dad230792b046c711f4e491cfdbabda58862ee78 Mon Sep 17 00:00:00 2001
8e2d79
From: Martin Kutlak <mkutlak@redhat.com>
8e2d79
Date: Wed, 12 Dec 2018 16:12:23 +0100
8e2d79
Subject: [PATCH] shellcheck: Suppress shellcheck warning SC1090
8e2d79
8e2d79
ShellCheck is not able to include sourced files from paths that are determined at runtime.
8e2d79
The file will not be read, potentially resulting in warnings about unassigned variables and similar.
8e2d79
8e2d79
If you don't care that ShellCheck is unable to account for the file, specify
8e2d79
"# shellcheck source=/dev/null".
8e2d79
8e2d79
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
8e2d79
---
8e2d79
 src/plugins/abrt-action-analyze-ccpp-local.in | 5 +++--
8e2d79
 1 file changed, 3 insertions(+), 2 deletions(-)
8e2d79
8e2d79
diff --git a/src/plugins/abrt-action-analyze-ccpp-local.in b/src/plugins/abrt-action-analyze-ccpp-local.in
8e2d79
index 92593437..9144c0e6 100644
8e2d79
--- a/src/plugins/abrt-action-analyze-ccpp-local.in
8e2d79
+++ b/src/plugins/abrt-action-analyze-ccpp-local.in
8e2d79
@@ -26,8 +26,9 @@ if $INSTALL_DI; then
8e2d79
     EXTRA_ARGS=
8e2d79
     for osrel in "${DUMP_DIR:-.}/os_info_in_rootdir" "${DUMP_DIR:-.}/os_info"
8e2d79
     do
8e2d79
-        if [ -e $osrel ]; then
8e2d79
-            . $osrel
8e2d79
+        if [ -e "$osrel" ]; then
8e2d79
+            # shellcheck source=/dev/null
8e2d79
+            . "$osrel"
8e2d79
             if [ -n "$VERSION_ID" ]; then
8e2d79
                 EXTRA_ARGS="--releasever=$VERSION_ID"
8e2d79
                 break
8e2d79
-- 
8e2d79
2.26.2
8e2d79