Introduction
Introduction Statistics Contact Development Disclaimer Help
Make numbers in brcon countdown bitreich style. - annna - Annna the nice friend…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 4c0ec870ed3b99d8bccfd6d012c7a1a590f35661
parent 1471ecccb7580cffdcd0d10e58562c875fda1ca0
Author: Annna Robert-Houdin <[email protected]>
Date: Thu, 13 May 2021 22:48:25 +0200
Make numbers in brcon countdown bitreich style.
Diffstat:
M brcon-countdown | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/brcon-countdown b/brcon-countdown
@@ -32,10 +32,10 @@ if [ $daysuntil -gt 0 ];
then
case "$daysuntil" in
1)
- daysstr="${daysuntil} day"
+ daysstr="$(int2bit ${daysuntil}) day"
;;
*)
- daysstr="${daysuntil} days"
+ daysstr="$(int2bit ${daysuntil}) days"
;;
esac
announce "${announcechannels}" \
@@ -51,10 +51,10 @@ then
case "$dayssince" in
1)
- daysstr="${dayssince} day"
+ daysstr="$(int2bit ${dayssince}) day"
;;
*)
- daysstr="${dayssince} days"
+ daysstr="$(int2bit ${dayssince}) days"
;;
esac
@@ -68,7 +68,7 @@ conferenceday=$((($(date +%s -d "${curdate}") - $(date +%s -d…
daytopic="$(grep -E "^$(date +%Y-%m-%d -d"${curdate}") - " "${schedule}" | cut…
announce "${announcechannels}" \
"$(printf "Welcome to bitreichcon %s day %s ( %s )! Schedule: gopher:/…
- "${year}" "${conferenceday}" "${daytopic}" "${year}")"
+ "${year}" "$(int2bit ${conferenceday})" "${daytopic}" "${year}")"
exit 0
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.