Skip to content

Commit

Permalink
the until loop test should use an until loop
Browse files Browse the repository at this point in the history
  • Loading branch information
lukec committed Dec 14, 2014
1 parent de84113 commit 36bbd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/about_loops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test_while_loops() {

test_until_loops() {
counter=10
while [ $counter -gt 7 ]; do
until [ $counter -lt 7 ]; do
(( counter-- ))
done

Expand Down

0 comments on commit 36bbd4d

Please sign in to comment.