tFix loop and wait period - exercise_time - announce workout exercises with notifications and speech synth
(HTM) git clone git://src.adamsgaard.dk/exercise_time
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit edd214ee0f0785389ef45453b97811a02d607ab7
(DIR) parent afd67f79d5687a0a797a6302edd75e84eacc8c6c
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 17 Jun 2019 09:06:50 +0200
Fix loop and wait period
Diffstat:
M exercise_time.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/exercise_time.sh b/exercise_time.sh
t@@ -46,7 +46,7 @@ else
IP=$(ip addr | grep 192.168.0)
fi
-for i in 0.."$1"; do
+for i in $(seq 1 "$1"); do
announcement="It's exercise time! $2"
t@@ -99,7 +99,7 @@ for i in 0.."$1"; do
fi
fi
- if [ "$i" -lt "$(echo "$1" - 1 | bc -l)" ]; then
+ if [ "$i" -lt "$(echo "$1" | bc -l)" ]; then
sleep $WAITSECS
fi
done