check for bc program and show info if not found
This commit is contained in:
parent
ff25428868
commit
c03375f93e
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue