c3650770cc
This reverts commit 297b30df5f
.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
12 lines
306 B
Bash
Executable file
12 lines
306 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
changelogFile=${1:-CHANGELOG.md}
|
|
|
|
if [ ! -r "$changelogFile" ]; then
|
|
echo "Unable to read file $changelogFile" >&2
|
|
exit 1
|
|
fi
|
|
|
|
grep -e '^## ' "$changelogFile" | awk '{print$3}' | sort -c -r || exit 2
|
|
|
|
echo "Congratulations! Changelog $changelogFile dates are in descending order."
|