Fix $/${} is unnecessary on arithmetic variables

https://github.com/koalaman/shellcheck/wiki/SC2004
This commit is contained in:
Jeremy Gardais 2020-02-19 15:23:28 +01:00
parent 19afed7c2e
commit a210b7bb38
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ do
TYPE=$(echo "${LINE}" | cut -d" " -f3)
DRES=$(/usr/sbin/smartctl -H -d "${TYPE}" -n standby "${DISK}")
DCODE=$?
DSTBY=$(( $DCODE & 2 ))
DFAIL=$(( $DCODE & 8 ))
DWARN=$(( $DCODE & 32 ))
DSTBY=$(( DCODE & 2 ))
DFAIL=$(( DCODE & 8 ))
DWARN=$(( DCODE & 32 ))
if test $DSTBY -ne 0
then