From a210b7bb3895b518921f7a2505ab84e782577464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 19 Feb 2020 15:23:28 +0100 Subject: [PATCH] Fix $/${} is unnecessary on arithmetic variables https://github.com/koalaman/shellcheck/wiki/SC2004 --- xymon/plugins/client/ext/smart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xymon/plugins/client/ext/smart b/xymon/plugins/client/ext/smart index 7a46e64..fd65cb4 100755 --- a/xymon/plugins/client/ext/smart +++ b/xymon/plugins/client/ext/smart @@ -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