X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=ensure-documented.sh;h=823a542a467e7b3d551fa13e0ddea0cba758c524;hb=e0a9d10d3d6b488ed3a3b00050b34d9faee4a6f8;hp=928abdb73c6897cc98cd74cc0e3550afb9b9ea23;hpb=227dc247632240097740bf3cfece2829bfd3cf14;p=releng%2Fglobal-jjb.git diff --git a/ensure-documented.sh b/ensure-documented.sh index 928abdb7..823a542a 100755 --- a/ensure-documented.sh +++ b/ensure-documented.sh @@ -30,12 +30,12 @@ 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 -if [ $undocumented_count -gt 0 ]; then +if [ "$undocumented_count" -gt 0 ]; then echo "Number of undocumented items: $undocumented_count" exit 1 fi