Skip to content

Commit

Permalink
registry: adding a check for an empty category
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff authored and Jack Batzner committed Dec 31, 2019
1 parent e70fbb5 commit 7ab6787
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/website-registrycheck.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ for doc in $docs; do
if ! grep "^subcategory: " "$doc" > /dev/null; then
echo "Website documentation file is missing a 'subcategory' line at the top: $doc"
error=true
# cannot be empty
elif grep "^subcategory: \"\"" "$doc" > /dev/null; then
echo "Website documentation file cannot have an empty 'subcategory' line at the top: $doc"
error=true
fi
;;

Expand Down

0 comments on commit 7ab6787

Please sign in to comment.