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 ec44545 commit 748f658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 748f658

Please sign in to comment.