From 05c9525d7ee6cd4cc4bfb66e0f6017f1715f2b47 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Tue, 16 Oct 2018 14:46:16 -0400 Subject: [PATCH] $/${} is unnecessary on arithmetic variables https://github.com/koalaman/shellcheck/wiki/SC2004 modified: scripts/web-add.sh --- scripts/web-add.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index 4fe2278..0b6f48a 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -433,7 +433,7 @@ EOT if [ "$VAR" = "" ] || [ "$VAR" -ge 59 ]; then VAR=1 else - VAR=$(($VAR +1)) + VAR=$((VAR +1)) fi echo "$VAR * * * * root umask 033; [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.$in_login.conf -a -r $HOME_DIR_USER/log/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=$in_login -update >/dev/null" >> /etc/cron.d/awstats @@ -918,7 +918,7 @@ op_add() { esac done - shift $(($OPTIND - 1)) + shift $((OPTIND - 1)) if [ $# -ne 2 ]; then usage exit 1