Blame SOURCES/0067-shellcheck-Use-.-instead-of-legacy-backticked.patch

8e2d79
From 9edffdf1a4be9a2983cb69f1ebff81c805cde72f Mon Sep 17 00:00:00 2001
8e2d79
From: Martin Kutlak <mkutlak@redhat.com>
8e2d79
Date: Wed, 12 Dec 2018 16:09:59 +0100
8e2d79
Subject: [PATCH] shellcheck: Use $(...) instead of legacy backticked
8e2d79
8e2d79
Fixes ShellCheck warning SC2006.
8e2d79
8e2d79
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
8e2d79
---
8e2d79
 src/cli/abrt-console-notification.sh          | 4 ++--
8e2d79
 src/plugins/abrt-action-analyze-ccpp-local.in | 2 +-
8e2d79
 2 files changed, 3 insertions(+), 3 deletions(-)
8e2d79
8e2d79
diff --git a/src/cli/abrt-console-notification.sh b/src/cli/abrt-console-notification.sh
8e2d79
index cd69eb38..c245677b 100755
8e2d79
--- a/src/cli/abrt-console-notification.sh
8e2d79
+++ b/src/cli/abrt-console-notification.sh
8e2d79
@@ -26,11 +26,11 @@ if [ ! -f "$LPATHDIR" ]; then
8e2d79
     mkdir -p "$LPATHDIR" >"$ABRT_DEBUG_LOG" 2>&1 || return 0
8e2d79
 fi
8e2d79
 
8e2d79
-TMPPATH=`mktemp --tmpdir="$LPATHDIR" lastnotification.XXXXXXXX 2> "$ABRT_DEBUG_LOG"`
8e2d79
+TMPPATH=$(mktemp --tmpdir="$LPATHDIR" lastnotification.XXXXXXXX 2> "$ABRT_DEBUG_LOG")
8e2d79
 
8e2d79
 SINCE=0
8e2d79
 if [ -f "$SINCEFILE" ]; then
8e2d79
-    SINCE=`cat $SINCEFILE 2>"$ABRT_DEBUG_LOG"`
8e2d79
+    SINCE=$(cat "$SINCEFILE" 2>"$ABRT_DEBUG_LOG")
8e2d79
 fi
8e2d79
 
8e2d79
 # always update the lastnotification
8e2d79
diff --git a/src/plugins/abrt-action-analyze-ccpp-local.in b/src/plugins/abrt-action-analyze-ccpp-local.in
8e2d79
index 6691c59b..92593437 100644
8e2d79
--- a/src/plugins/abrt-action-analyze-ccpp-local.in
8e2d79
+++ b/src/plugins/abrt-action-analyze-ccpp-local.in
8e2d79
@@ -15,7 +15,7 @@ if $INSTALL_DI; then
8e2d79
     # debuginfo install fail even for root.
8e2d79
     # Therefore, if we are root, we don't use the wrapper.
8e2d79
     EXECUTABLE=@LIBEXEC_DIR@/abrt-action-install-debuginfo-to-abrt-cache
8e2d79
-    if [ x"`id -u`" = x"0" ]; then
8e2d79
+    if [ x"$(id -u)" = x"0" ]; then
8e2d79
         EXECUTABLE=abrt-action-install-debuginfo
8e2d79
     fi
8e2d79
 
8e2d79
-- 
8e2d79
2.26.2
8e2d79