#!/bin/bash # Check that issues in CHANGELOG are up-to-to-date set -eu version=$(head -1 /dev/null | grep '^\* ') if [ "$changelog" != "$issues" ]; then echo "Diff in issues in CHANGELOG" diff <(echo "$changelog") <(echo "$issues") exit 1 fi