Pin git review to 1.78
[releng/global-jjb.git] / ensure-documented.sh
index 12d4927..823a542 100755 (executable)
@@ -25,17 +25,17 @@ for file in "${jjb_files[@]}"; do
          -e '\- wrapper:' \
          -A1 "$file" \
          | grep 'name: ' | awk -F': ' '{print $2}' | sort | uniq \
-         | tr -d "'")
+         | tr -d "'" | tr -d '"')
 
     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
 
-if [ $undocumented_count -gt 0 ]; then
+if [ "$undocumented_count" -gt 0 ]; then
     echo "Number of undocumented items: $undocumented_count"
     exit 1
 fi