Fix $/${} is unnecessary on arithmetic variables
https://github.com/koalaman/shellcheck/wiki/SC2004
This commit is contained in:
parent
19afed7c2e
commit
a210b7bb38
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue