diff --git a/script11 b/script11 index 2628551..83cd5e4 100644 --- a/script11 +++ b/script11 @@ -3,15 +3,15 @@ COUNTER=$1 COUNTER=$(( COUNTER * 60 )) -minusone()({ - COUNNTER=$(( COUNTER - 1 )) +minusone(){ + COUNTER=$(( COUNTER - 1 )) sleep 1 } while [ $COUNTER -gt 0 ] do echo you still have $COUNTER seconds left - minusonne + minusone done [ $COUNTER = 0 ] && echo time is up && minusone