Skip to content

Commit eafa747

Browse files
committed
lint: Fix shellcheck SC2155
Declare and assign separately to avoid masking return values. https://github.com/koalaman/shellcheck/wiki/SC2155
1 parent 615ff4e commit eafa747

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/lint/04_install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ if [ "$TRAVIS_OS_NAME" == "osx" ]; then
1111
travis_retry brew update
1212
travis_retry brew install shellcheck
1313
travis_retry brew upgrade python
14-
export PATH="$(brew --prefix python)/bin:$PATH"
14+
PATH="$(brew --prefix python)/bin:$PATH"
15+
export PATH
1516
else
1617
SHELLCHECK_VERSION=v0.6.0
1718
travis_retry curl --silent "https://storage.googleapis.com/shellcheck/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar --xz -xf - --directory /tmp/
18-
export PATH="/tmp/shellcheck-${SHELLCHECK_VERSION}:${PATH}"
19+
PATH="/tmp/shellcheck-${SHELLCHECK_VERSION}:${PATH}"
20+
export PATH
1921
fi
2022

2123
travis_retry pip3 install codespell==1.15.0

0 commit comments

Comments
 (0)