Skip to content

Commit 07a53dc

Browse files
Remove repeated suppression. Fix indentation.
1 parent 638e53b commit 07a53dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/lint/lint-shell.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export LC_ALL=C
1313
# respectively. So export LC_ALL=C is set as required by lint-shell-locale.sh
1414
# but unset here in case of running in Travis.
1515
if [ "$TRAVIS" = "true" ]; then
16-
unset LC_ALL
16+
unset LC_ALL
1717
fi
1818

1919
if ! command -v shellcheck > /dev/null; then
@@ -38,8 +38,7 @@ disabled=(
3838
SC2116 # Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'.
3939
SC2148 # Tips depend on target shell and yours is unknown. Add a shebang.
4040
SC2162 # read without -r will mangle backslashes.
41-
SC2166 # Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
42-
SC2166 # Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
41+
SC2166 # Prefer [ p ] {&&,||} [ q ] as [ p -{a,o} q ] is not well defined.
4342
SC2181 # Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
4443
SC2206 # Quote to prevent word splitting, or split robustly with mapfile or read -a.
4544
SC2207 # Prefer mapfile or read -a to split command output (or quote to avoid splitting).

0 commit comments

Comments
 (0)