File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export LC_ALL=C
13
13
# respectively. So export LC_ALL=C is set as required by lint-shell-locale.sh
14
14
# but unset here in case of running in Travis.
15
15
if [ " $TRAVIS " = " true" ]; then
16
- unset LC_ALL
16
+ unset LC_ALL
17
17
fi
18
18
19
19
if ! command -v shellcheck > /dev/null; then
@@ -38,8 +38,7 @@ disabled=(
38
38
SC2116 # Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'.
39
39
SC2148 # Tips depend on target shell and yours is unknown. Add a shebang.
40
40
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.
43
42
SC2181 # Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
44
43
SC2206 # Quote to prevent word splitting, or split robustly with mapfile or read -a.
45
44
SC2207 # Prefer mapfile or read -a to split command output (or quote to avoid splitting).
You can’t perform that action at this time.
0 commit comments