lint: Fix shellcheck SC2155

Declare and assign separately to avoid masking return values.

https://github.com/koalaman/shellcheck/wiki/SC2155
pull/764/head
Ben Woosley 5 years ago
parent 615ff4e7db
commit eafa747ca5
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345

@ -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

Loading…
Cancel
Save