diff --git a/detectors/normalize/lib/lookforIR.lib.sh b/detectors/normalize/lib/lookforIR.lib.sh index d3b85ce..1ddc313 100644 --- a/detectors/normalize/lib/lookforIR.lib.sh +++ b/detectors/normalize/lib/lookforIR.lib.sh @@ -56,9 +56,9 @@ function lookForIR { loginfo " --> IR size : IRa = ${IR[5]} / IRb = ${IR[7]}" loginfo " --> IR Score: ${IR[8]}" - let "deltaIR=${IR[5]} - ${IR[7]}" + deltaIR=$((IR[5] - IR[7])) - if (( $deltaIR < -10 )) || (( $deltaIR > 10 )); then + if (( deltaIR < -10 )) || (( deltaIR > 10 )); then logwarning "Differences between IR lengths ($deltaIR) is greater than 10" fi