mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 21:17:38 +00:00
remove leading zero for day
This commit is contained in:
parent
7e80757c0d
commit
6b505dabb8
@ -19,7 +19,7 @@ short_date=$(date --date "$commit_date" "+%Y%m%d")
|
||||
year=$(date --date "$commit_date" "+%Y")
|
||||
month=$(date --date "$commit_date" "+%B")
|
||||
month_digit=$(date --date "$commit_date" "+%m")
|
||||
day=$(date --date "$commit_date" "+%d")
|
||||
day=$(date --date "$commit_date" "+%d" | sed 's@^0@@')
|
||||
|
||||
case $day in
|
||||
"1" | "21" | "31" ) suffix="st";;
|
||||
|
Loading…
Reference in New Issue
Block a user