Merge pull request #233 from dashorty/master
check for bc program and show info if not found
This commit is contained in:
commit
f61d1b8d21
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue