Browse Source

Avoid `let` in favor of Bash native syntax (ShellCheck advice)

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

+ 1
- 1
99bottles.sh View File

@@ -208,7 +208,7 @@ syllables() {
208 208
         *-*)        n=3;; #don't care about more than 3
209 209
     esac
210 210
     case $word in
211
-        *seven*)    let $((n = n+1));;
211
+        *seven*)    ((n = n+1)) ;;
212 212
     esac
213 213
     echo "$n"
214 214
 }