From 5fbe2a9efa84ecf752f2821d1138b03aeba0398e Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 15 May 2023 15:03:36 +0200 Subject: [PATCH] refactor let bash expression Former-commit-id: 8828ffa9a3314ce4c0593796fdbd9911970a7676 Former-commit-id: ebb016470f1fcf20333bef490e4167ae6132dfe9 --- detectors/normalize/lib/lookforIR.lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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