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
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.
1515if [ " $TRAVIS " = " true" ]; then
16- unset LC_ALL
16+ unset LC_ALL
1717fi
1818
1919if ! 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).
You can’t perform that action at this time.
0 commit comments