Introduction
Introduction Statistics Contact Development Disclaimer Help
tFix help text - exercise_time - announce workout exercises with notifications …
git clone git://src.adamsgaard.dk/exercise_time
Log
Files
Refs
LICENSE
---
commit ad7f3cebea9b231c47711a0113377ed2b98ce492
parent 1c5435ac58e13798403399720e67b83b520276ec
Author: Anders Damsgaard <[email protected]>
Date: Sun, 10 Mar 2019 21:48:25 +0100
Fix help text
Diffstat:
M exercise_time.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/exercise_time.sh b/exercise_time.sh
t@@ -22,7 +22,7 @@ WAITSECS=120
SPEECHSYNTH=1
function usage {
- echo "Usage: $1 <SETS> <EXERCISE>"
+ echo "Usage: ${0##*/} <SETS> <EXERCISE>"
echo "Example: For three sets of ten pushups, use:"
echo " $0 3 'Do ten push ups'"
}
t@@ -35,14 +35,15 @@ fi
# stop mpd if it is running
#mpc pause &> /dev/null
+UNAMESTR="$(uname)"
+
# announce exercise the specified number of times
-UNAMESTR=`uname`
# Only send notification at work
if [[ "$UNAMESTR" == 'Darwin' ]]; then
- IP=`/sbin/ifconfig | grep 10.9.62` # Sayre Hall
+ IP=$(/sbin/ifconfig | grep 10.9.62) # Sayre Hall
else
- IP=`ip addr | grep 192.168.40`
+ IP=$(ip addr | grep 192.168.40)
fi
for ((i=0; i<$1; i++)); do
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.