check for bc program and show info if not found

This commit is contained in:
Thomas Kurz 2023-10-01 10:35:42 +02:00
parent ff25428868
commit c03375f93e

View file

@ -83,6 +83,12 @@ main() {
interval_update=0 interval_update=0
fi fi
if ! command -v bc &> /dev/null
then
echo "command bc could not be found!"
exit 1
fi
while true; do while true; do
if ((counter == 0)); then if ((counter == 0)); then
counter=60 counter=60