Show error if distribution_type is missing
[releng/global-jjb.git] / ensure-documented.sh
index 12d4927..b24e40c 100755 (executable)
@@ -25,12 +25,12 @@ 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