Skip to content

Commit

Permalink
Show better how alphabetic ordering check failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Nov 5, 2024
1 parent 0e7e1f8 commit 3c0f3ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ git grep name: sites.yml |
grep -A999999 'name: "[0-9]' |
sed 's;.*name: "\([^"]*\)"$;\1;' >actual
cat actual | LC_ALL=C sort --ignore-case >expected
if diff actual expected
if diff -q actual expected
then
echo "Update sites are ordered correctly."
else
echo "Please list sites in alphabetical order!"
git diff --no-index actual expected
exit 5
fi
echo "== Generating legacy pages ==" &&
Expand Down

0 comments on commit 3c0f3ec

Please sign in to comment.