fix shellcheck
This commit is contained in:
@@ -545,7 +545,7 @@ _() {
|
|||||||
|
|
||||||
# Undocumented method.
|
# Undocumented method.
|
||||||
# Note: This is commented to make shellcheck play nice.
|
# Note: This is commented to make shellcheck play nice.
|
||||||
for i in {1..10};{ echo "$i";}
|
# for i in {1..10};{ echo "$i";}
|
||||||
|
|
||||||
# Expansion.
|
# Expansion.
|
||||||
for i in {1..10}; do echo "$i"; done
|
for i in {1..10}; do echo "$i"; done
|
||||||
@@ -584,9 +584,10 @@ _() {
|
|||||||
f()(($1))
|
f()(($1))
|
||||||
|
|
||||||
# Using tests, loops etc.
|
# Using tests, loops etc.
|
||||||
# Note: You can also use ‘while’, ‘until’, ‘case’, ‘(())’, ‘[[]]’.
|
# NOTE: You can also use ‘while’, ‘until’, ‘case’, ‘(())’, ‘[[]]’.
|
||||||
f()if true; then echo "$1"; fi
|
# NOTE: These are commented to make shellcheck play nice.
|
||||||
f()for i in "$@"; do echo "$i"; done
|
# f()if true; then echo "$1"; fi
|
||||||
|
# f()for i in "$@"; do echo "$i"; done
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user