fix: Ubuntu does not support date -j

This is required for changelogs.

Resolves #147
This commit is contained in:
Y.D.X 2023-10-09 17:29:08 +08:00 committed by GitHub
parent 0fea0323a4
commit 22bf354da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,7 +394,7 @@ function changelogs() {
--date=short "${_author}" "$_since" "$_until" $_log_options $_pathspec \
| sort -u -r | head -n $_limit \
| while read DATE; do
day=$(date -u -j -f "%Y-%m-%d" "$DATE" "+%A")
day=$(date -d "$DATE" "+%A")
echo -e "\n[$DATE - $day]"
GIT_PAGER=cat git -c log.showSignature=false log \
--use-mailmap $_merges \