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