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

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