fix: GNU dc breaking change?

For some reason `?` now start printing output
This commit is contained in:
Ahmad Ansori Palembani 2025-01-23 09:15:12 +07:00
parent 1a1650fbcb
commit 4c189ea8c7
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -2,7 +2,6 @@
while :
do
date +"full='%a, %d %b %Y • %H:%M %Z' date='%Y-%m-%d'" \
| xargs jo
date +%s.%N | dc -e "? d 1 + 1 / r - p" | xargs sleep
date +"full='%a, %d %b %Y • %H:%M %Z' date='%Y-%m-%d'" | xargs jo
sleep "$(date +%s.%N | dc -e "? d 1 + 1 / r - n" | tr '\n' ' ' | sed 's/.* ././')"
done