aboutsummaryrefslogtreecommitdiff
path: root/workout
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2022-07-31 17:40:11 +0000
committerrodri <rgl@antares-labs.eu>2022-07-31 17:40:11 +0000
commit2cd49de2132f23e595fec89bfbe41d5b1b5c1c18 (patch)
tree4205ceb065d35e9d6173097762a313fb041ce8ab /workout
parent3f2f92a1f48783f10692ae2defaf57585805b704 (diff)
downloadrcfitness-2cd49de2132f23e595fec89bfbe41d5b1b5c1c18.tar.gz
rcfitness-2cd49de2132f23e595fec89bfbe41d5b1b5c1c18.tar.bz2
rcfitness-2cd49de2132f23e595fec89bfbe41d5b1b5c1c18.zip
added new exercises. sanitize all input. got rid of the default session and included a calisthenics routine instead.
Diffstat (limited to 'workout')
-rwxr-xr-xworkout2
1 files changed, 2 insertions, 0 deletions
diff --git a/workout b/workout
index d574c49..d1edb44 100755
--- a/workout
+++ b/workout
@@ -46,6 +46,7 @@ fn plansession{
echo program your workout session (a to add all, w to begin):
printexers | mc
e=`{read}
+ e=`{sanitize $e}
if(isnumber $e && test $e -ge 1 && test $e -le $#exercises)
session=($session $e)
if not if(~ $e a){
@@ -103,6 +104,7 @@ fn start{
while(! ~ $e q){
printsession 1 1 | mc
e=`{read}
+ e=`{sanitize $e}
if(isnumber $e && test $e -ge 1 && test $e -le $#session){
lo=`{echo $e-1 | bc}
hi=`{echo $e+1 | bc}