Merge pull request #151 from YDX-2147483647/patch-1

fix: Ubuntu does not support `date -j`
This commit is contained in:
arzzen 2023-10-17 06:26:33 +02:00 committed by GitHub
commit a813846c9f
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 \