🐛 Fixed leading 0 bug
This commit is contained in:
parent
ef8b1760ed
commit
e8e9c29dc3
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
main() {
|
||||
hour=$(date +%H)
|
||||
hour=$(date +%-H)
|
||||
if ((hour >= 12 && hour < 16)); then
|
||||
printf "%s AM\n" "$(date '+%I:%M:%S')"
|
||||
elif ((hour >= 16 || hour <= 23)); then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue