From c03375f93efa6a63975f24c3c989db8e1f4abce0 Mon Sep 17 00:00:00 2001 From: Thomas Kurz Date: Sun, 1 Oct 2023 10:35:42 +0200 Subject: [PATCH] check for bc program and show info if not found --- scripts/network_bandwidth.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/network_bandwidth.sh b/scripts/network_bandwidth.sh index 6427bdd..939052a 100755 --- a/scripts/network_bandwidth.sh +++ b/scripts/network_bandwidth.sh @@ -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