From eafa747ca5926d47f555820cecae0846ac01e20f Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Sun, 9 Jun 2019 18:34:10 +0200 Subject: lint: Fix shellcheck SC2155 Declare and assign separately to avoid masking return values. https://github.com/koalaman/shellcheck/wiki/SC2155 --- ci/lint/04_install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ci/lint/04_install.sh') 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 -- cgit v1.2.3