aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Fenoll <[email protected]>2017-12-14 16:03:03 +0100
committerPierre Fenoll <[email protected]>2018-03-14 11:41:52 +0100
commitec0dfec4d2541eb0ff777109165e477832d579b4 (patch)
tree9e0a0f9062d834ab9654c0cff9df6dac07d59f15
parent9d974e1f97a112dfc730c1d7c417792edf30dfb9 (diff)
downloadkerl-ec0dfec4d2541eb0ff777109165e477832d579b4.tar.gz
kerl-ec0dfec4d2541eb0ff777109165e477832d579b4.tar.bz2
kerl-ec0dfec4d2541eb0ff777109165e477832d579b4.zip
In kerl line 496:
tail -n +$(($INDEX+3)) "$1" | \ ^-- SC2004: $/${} is unnecessary on arithmetic variables.
-rwxr-xr-xkerl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerl b/kerl
index 7832ae0..ed8f703 100755
--- a/kerl
+++ b/kerl
@@ -493,7 +493,7 @@ show_configuration_warnings()
if [ -n "$INDEX" ]; then
# Skip the section header, find the end line and skip it
# then print the results indented
- tail -n +$(($INDEX+3)) "$1" | \
+ tail -n +$((INDEX+3)) "$1" | \
sed -n '1,/\*/p' | \
awk -F: -v logfile="$1" -v section="$2" \
'BEGIN { printf "%s (See: %s)\n", section, logfile }