Merge pull request #233 from dashorty/master

check for bc program and show info if not found
This commit is contained in:
Ethan Edwards 2023-10-02 15:03:19 -04:00 committed by GitHub
commit f61d1b8d21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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