fix shellcheck

This commit is contained in:
Dylan Araps
2018-06-14 20:21:50 +10:00
parent bdb8e51ee9
commit d9aa2f2a97

View File

@@ -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
} }
``` ```