X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=ensure-documented.sh;h=b24e40c84401b70ca388c52731f550c86c622e01;hb=e89478b17cdf59665e3915390973f93cafcab024;hp=434e06c46ce9eb48af0af8e38654f07300daf72e;hpb=714b19a974ea9e989fe365f88f8e579fd7a7670b;p=releng%2Fglobal-jjb.git diff --git a/ensure-documented.sh b/ensure-documented.sh index 434e06c4..b24e40c8 100755 --- a/ensure-documented.sh +++ b/ensure-documented.sh @@ -16,7 +16,6 @@ mapfile -t jjb_files < <(find jjb -name "*.yaml") undocumented_count=0 for file in "${jjb_files[@]}"; do mapfile -t docs_interests < <(grep -e '\- builder:' \ - -e '\- job-group:' \ -e '\- job-template:' \ -e '\- parameter:' \ -e '\- property:' \ @@ -26,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