Browse Source

Use more meaningful variable name for "bottles to go"

Alois Mahdal 3 years ago
parent
commit
b2dd57b007
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      99bottles.sh

+ 5
- 5
99bottles.sh View File

@@ -215,7 +215,7 @@ syllables() {
215 215
 
216 216
 main() {
217 217
     local TransitionLine    # transition line between verses
218
-    local nb                # beginning number
218
+    local togo              # bottles to go
219 219
     local mode=standard     # transition mode
220 220
     while true; do case $1 in
221 221
         --careless)     mode=careless; shift ;;
@@ -227,11 +227,11 @@ main() {
227 227
             careless)   echo "If one of those bottles should happen to fall" ;;
228 228
         esac
229 229
     )
230
-    nb=ninety-nine
231
-    while [ -n "$nb" ]; do
232
-        verse "$nb"
230
+    togo=ninety-nine
231
+    while [ -n "$togo" ]; do
232
+        verse "$togo"
233 233
         echo
234
-        nb=$(pred "$nb")
234
+        togo=$(pred "$togo")
235 235
     done | poeticize | grammar | punctuate | capitalize
236 236
 }
237 237