lint: Opt out of locale dependence in Zcash shell scripts

This commit is contained in:
Jack Grigg 2020-10-28 13:13:40 +00:00
parent 7c4b19fa4d
commit dbfb3565d6
14 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -exo pipefail set -exo pipefail
# Debian 9 # Debian 9
docker build . -f Dockerfile-build-python.apt --build-arg FROMBASEOS=debian --build-arg FROMBASEOS_BUILD_TAG=9 -t electriccoinco/zcashd-build-debian9 docker build . -f Dockerfile-build-python.apt --build-arg FROMBASEOS=debian --build-arg FROMBASEOS_BUILD_TAG=9 -t electriccoinco/zcashd-build-debian9
docker push electriccoinco/zcashd-build-debian9 docker push electriccoinco/zcashd-build-debian9

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -eo pipefail set -eo pipefail
if [[ ${1} == "--version" ]];then if [[ ${1} == "--version" ]];then

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -u set -u

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -eu -o pipefail set -eu -o pipefail
AFL_HARDEN=1 AFL_HARDEN=1

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -eu -o pipefail set -eu -o pipefail
for d in src/fuzzing/*/ ; do for d in src/fuzzing/*/ ; do

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -eu -o pipefail set -eu -o pipefail
for d in src/fuzzing/*/ ; do for d in src/fuzzing/*/ ; do

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -exu -o pipefail set -exu -o pipefail
for d in src/fuzzing/*/ ; do for d in src/fuzzing/*/ ; do

View File

@ -2,6 +2,7 @@
## Usage: ## Usage:
## ./zcutil/build-debian-package.sh ## ./zcutil/build-debian-package.sh
export LC_ALL=C
set -e set -e
set -x set -x

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -eu -o pipefail set -eu -o pipefail
set +x set +x

View File

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
# Copyright (c) 2020 The Zcash developers # Copyright (c) 2020 The Zcash developers
export LC_ALL=C
rm -f src/Makefile rm -f src/Makefile
rm -f src/Makefile.in rm -f src/Makefile.in
rm -f doc/man/Makefile rm -f doc/man/Makefile

View File

@ -4,6 +4,7 @@
# #
# Note: It doesn't delete any local tags. # Note: It doesn't delete any local tags.
export LC_ALL=C
set -exu -o pipefail set -exu -o pipefail
ZCASH_TAG_RGX='^v[0-9]+.[0-9]+.[0-9]+.z[0-9]+' ZCASH_TAG_RGX='^v[0-9]+.[0-9]+.[0-9]+.z[0-9]+'

View File

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
# Copyright (c) 2020 The Zcash developers # Copyright (c) 2020 The Zcash developers
export LC_ALL=C
zcutil/clean.sh zcutil/clean.sh
rm -rf depends/*-*-* rm -rf depends/*-*-*

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -eu set -eu
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export LC_ALL=C
set -eu -o pipefail set -eu -o pipefail
usage() { usage() {