$/${} is unnecessary on arithmetic variables
https://github.com/koalaman/shellcheck/wiki/SC2004 modified: scripts/web-add.sh
This commit is contained in:
parent
f4fae90eb1
commit
05c9525d7e
|
@ -433,7 +433,7 @@ EOT
|
||||||
if [ "$VAR" = "" ] || [ "$VAR" -ge 59 ]; then
|
if [ "$VAR" = "" ] || [ "$VAR" -ge 59 ]; then
|
||||||
VAR=1
|
VAR=1
|
||||||
else
|
else
|
||||||
VAR=$(($VAR +1))
|
VAR=$((VAR +1))
|
||||||
fi
|
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
|
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
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
shift $(($OPTIND - 1))
|
shift $((OPTIND - 1))
|
||||||
if [ $# -ne 2 ]; then
|
if [ $# -ne 2 ]; then
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue