Use -u instead of --utc to compatibility with BSD's date command

This commit is contained in:
Taiki Endo
2022-06-13 22:09:25 +09:00
parent 238cf20a47
commit 27b6cde93d

View File

@@ -42,7 +42,7 @@ fi
tags=$(git --no-pager tag)
if [[ -n "${tags}" ]]; then
# Make sure the same release does not exist in CHANGELOG.md.
release_date=$(date --utc '+%Y-%m-%d')
release_date=$(date -u '+%Y-%m-%d')
if grep -Eq "^## \\[${version//./\\.}\\] - ${release_date}$" CHANGELOG.md; then
bail "release ${version} already exist in CHANGELOG.md"
fi