aboutsummaryrefslogtreecommitdiff
path: root/workout
diff options
context:
space:
mode:
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}