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

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