mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
lint: Fix shellcheck SC2155
Declare and assign separately to avoid masking return values. https://github.com/koalaman/shellcheck/wiki/SC2155
This commit is contained in:
parent
615ff4e7db
commit
eafa747ca5
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue