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)
|
TYPE=$(echo "${LINE}" | cut -d" " -f3)
|
||||||
DRES=$(/usr/sbin/smartctl -H -d "${TYPE}" -n standby "${DISK}")
|
DRES=$(/usr/sbin/smartctl -H -d "${TYPE}" -n standby "${DISK}")
|
||||||
DCODE=$?
|
DCODE=$?
|
||||||
DSTBY=$(( $DCODE & 2 ))
|
DSTBY=$(( DCODE & 2 ))
|
||||||
DFAIL=$(( $DCODE & 8 ))
|
DFAIL=$(( DCODE & 8 ))
|
||||||
DWARN=$(( $DCODE & 32 ))
|
DWARN=$(( DCODE & 32 ))
|
||||||
|
|
||||||
if test $DSTBY -ne 0
|
if test $DSTBY -ne 0
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue