Shellcheck complains that
In kdump-lib.sh line 528:
awk ' \
^-- SC1004: This
backslash+linefeed is literal. Break outside single quotes if you just want to break the
line.
...
There is no need to use backslash+linefeed for awk and we can include
the linefeed without a backlash.
Signed-off-by: Coiby Xu <coxu(a)redhat.com>
---
kdump-lib.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kdump-lib.sh b/kdump-lib.sh
index ec338b4..c5bee02 100755
--- a/kdump-lib.sh
+++ b/kdump-lib.sh
@@ -527,10 +527,10 @@ remove_cmdline_param()
#
get_bootcpu_apicid()
{
- awk ' \
- BEGIN { CPU = "-1"; } \
- $1=="processor" && $2==":" { CPU = $NF; }
\
- CPU=="0" && /^apicid/ { print $NF; } \
+ awk '
+ BEGIN { CPU = "-1"; }
+ $1=="processor" && $2==":" { CPU = $NF; }
+ CPU=="0" && /^apicid/ { print $NF; }
' \
/proc/cpuinfo
}
--
2.37.1