mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated "correct code" block logic to match the "problematic code" block. One was indexing from 0 and the other from 1.
@@ -12,7 +12,7 @@ done
|
|||||||
### Correct code:
|
### Correct code:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
for ((i=0; i<n; i++))
|
for ((i=1; i <= n; i++))
|
||||||
do
|
do
|
||||||
echo "$i"
|
echo "$i"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user