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

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