Skip to content

Commit

Permalink
Merge pull request #233 from dashorty/master
Browse files Browse the repository at this point in the history
check for bc program and show info if not found
  • Loading branch information
ethancedwards8 authored Oct 2, 2023
2 parents ff25428 + c03375f commit f61d1b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/network_bandwidth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f61d1b8

Please # to comment.