Resolve shellcheck SC2219 use (()) instead of let 20/62820/3
authorThanh Ha <zxiiro@gmail.com>
Thu, 16 Jan 2020 00:20:54 +0000 (19:20 -0500)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 16 Jan 2020 02:57:28 +0000 (02:57 +0000)
SC2219: Instead of 'let expr', prefer (( expr )) .

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: Ibb7b4c66915c1d4c95f3475a9a9535115a00463e

ensure-documented.sh

index 928abdb..b24e40c 100755 (executable)
@@ -30,7 +30,7 @@ for file in "${jjb_files[@]}"; do
     for item in "${docs_interests[@]}"; do
         if ! grep -q "$item" "docs/${file//.yaml/.rst}"; then
             echo "$file:$item"
-            let "undocumented_count++"
+            (( undocumented_count++ ))
         fi
     done
 done