Skip to content

Commit

Permalink
Use -u instead of --utc to compatibility with BSD's date command
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jun 13, 2022
1 parent fa7c45c commit f5e8997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/publish.sh
Expand Up @@ -50,7 +50,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
Expand Down

0 comments on commit f5e8997

Please sign in to comment.