aboutsummaryrefslogtreecommitdiff
path: root/ci/lint
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2019-06-09 18:34:10 +0200
committerBen Woosley <ben.woosley@gmail.com>2019-10-09 15:50:42 +0100
commiteafa747ca5926d47f555820cecae0846ac01e20f (patch)
treea8d201bd1bfd03439c664aa0c0896880bb0e64cf /ci/lint
parent615ff4e7dbe2c4fc888ef489cf71dbca25d1b568 (diff)
downloadbitcoin-eafa747ca5926d47f555820cecae0846ac01e20f.tar.xz
lint: Fix shellcheck SC2155
Declare and assign separately to avoid masking return values. https://github.com/koalaman/shellcheck/wiki/SC2155
Diffstat (limited to 'ci/lint')
-rwxr-xr-xci/lint/04_install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/ci/lint/04_install.sh b/ci/lint/04_install.sh
index 712d410cd3..9d275e7b3b 100755
--- a/ci/lint/04_install.sh
+++ b/ci/lint/04_install.sh
@@ -11,11 +11,13 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
travis_retry brew update
travis_retry brew install shellcheck
travis_retry brew upgrade python
- export PATH="$(brew --prefix python)/bin:$PATH"
+ PATH="$(brew --prefix python)/bin:$PATH"
+ export PATH
else
SHELLCHECK_VERSION=v0.6.0
travis_retry curl --silent "https://storage.googleapis.com/shellcheck/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar --xz -xf - --directory /tmp/
- export PATH="/tmp/shellcheck-${SHELLCHECK_VERSION}:${PATH}"
+ PATH="/tmp/shellcheck-${SHELLCHECK_VERSION}:${PATH}"
+ export PATH
fi
travis_retry pip3 install codespell==1.15.0