Skip to content

Commit af85e14

Browse files
committed
Modified TravisCI script in order to get the latest Shellcheck
1 parent 0361323 commit af85e14

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ env:
1212
- PATH="${HOME}/bin:${PATH}"
1313
- SHELLCHECK_URL="https://s3.amazonaws.com/travis-blue-public/binaries/ubuntu/14.04/x86_64/shellcheck-0.4.5.tar.bz2"
1414

15+
cache:
16+
directories:
17+
- "${HOME}/bin"
18+
1519
before_install:
16-
- curl -sSL "${SHELLCHECK_URL}" | tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xjf -;
20+
- if ! shellcheck --version ; then
21+
curl -sSL "${SHELLCHECK_URL}" | tar -C "${HOME}/bin" -xjf - ;
22+
fi
1723
- shellcheck --version
1824
- gpg --keyserver hkp://keys.gnupg.net --recv-keys C4133165DF5EB4BAEABDADCACF1E7823C5339B59
1925

0 commit comments

Comments
 (0)