Browse Source

Fix caps for "break line" variables

Alois Mahdal 3 years ago
parent
commit
93ecba02cc
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      99bottles.sh

+ 9
- 9
99bottles.sh View File

@@ -167,7 +167,7 @@ verse() {
167 167
         echo "Go to the store and buy some more"
168 168
         nb=ninety-nine
169 169
     else
170
-        echo "$breakLine"
170
+        echo "$BreakLine"
171 171
         nb=$(pred "$nb")
172 172
     fi
173 173
     echo "$nb bottles of beer on the wall"
@@ -214,16 +214,16 @@ syllables() {
214 214
 }
215 215
 
216 216
 main() {
217
-    local breakLine             # bottle-break (or not) line
218
-    local standardBreakLine     # ^^ standard variant
219
-    local wastefulBreakLine     # ^^ wasteful (bottle breaks) variant
217
+    local BreakLine             # bottle-break (or not) line
218
+    local standard_break_line   # ^^ standard variant
219
+    local wasteful_break_line   # ^^ wasteful (bottle breaks) variant
220 220
     local nb            # beginning number
221
-    standardBreakLine="Take one down and pass it around"
222
-    wastefulBreakLine="If one of those bottles should happen to fall"
223
-    breakLine=$(
221
+    standard_break_line="Take one down and pass it around"
222
+    wasteful_break_line="If one of those bottles should happen to fall"
223
+    BreakLine=$(
224 224
         [ "$1" = --careless ] \
225
-         && echo "$wastefulBreakLine" \
226
-         || echo "$standardBreakLine"
225
+         && echo "$wasteful_break_line" \
226
+         || echo "$standard_break_line"
227 227
     )
228 228
     nb=ninety-nine
229 229
     while [ -n "$nb" ]; do