$/${} is unnecessary on arithmetic variables

https://github.com/koalaman/shellcheck/wiki/SC2004
modified:   scripts/web-add.sh
This commit is contained in:
Patrick Marchand 2018-10-16 14:46:16 -04:00
parent f4fae90eb1
commit 05c9525d7e

View file

@ -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