🐛 Fixed leading 0 bug

This commit is contained in:
z3rOR0ne 2024-12-01 09:06:52 -08:00
parent ef8b1760ed
commit e8e9c29dc3

View file

@ -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