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