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

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