fix locale for lint-shell
This commit is contained in:
parent
990e182587
commit
83c48d9a1f
1 changed files with 9 additions and 3 deletions
|
@ -6,9 +6,15 @@
|
||||||
#
|
#
|
||||||
# Check for shellcheck warnings in shell scripts.
|
# Check for shellcheck warnings in shell scripts.
|
||||||
|
|
||||||
# This script is intentionally locale dependent by not setting "export LC_ALL=C"
|
export LC_ALL=C
|
||||||
# to allow running certain versions of shellcheck that core dump when LC_ALL=C
|
|
||||||
# is set.
|
# The shellcheck binary segfault/coredumps in Travis with LC_ALL=C
|
||||||
|
# It does not do so in Ubuntu 14.04, 16.04, 18.04 in versions 0.3.3, 0.3.7, 0.4.6
|
||||||
|
# respectively. So export LC_ALL=C is set as required by lint-shell-locale.sh
|
||||||
|
# but unset here in case of running in Travis.
|
||||||
|
if [ "$TRAVIS" = "true" ]; then
|
||||||
|
unset LC_ALL
|
||||||
|
fi
|
||||||
|
|
||||||
# Disabled warnings:
|
# Disabled warnings:
|
||||||
# SC2001: See if you can use ${variable//search/replace} instead.
|
# SC2001: See if you can use ${variable//search/replace} instead.
|
||||||
|
|
Loading…
Reference in a new issue