Skip to content

Commit b788221

Browse files
committed
CI: fix installation of shfmt
Changes to shfmt have resulted in the previous installation method causing an error: ../../../golang.org/x/term/term_linux.go:11:7: ioctlReadTermios redeclared in this block
1 parent 135aecc commit b788221

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ matrix:
6060

6161
# Check for inconsistent script formatting
6262
- name: 'Script Formatting Check'
63-
language: go
63+
language: minimal
6464
install:
65-
- go get -u mvdan.cc/sh/cmd/shfmt
65+
- docker run --volume "$TRAVIS_BUILD_DIR":/mnt --workdir /mnt mvdan/shfmt:latest -i 2 -w .
6666
script:
67-
- shfmt -i 2 -d .
67+
- git diff --color --exit-code
6868

6969

7070
- name: 'Unit Tests'

0 commit comments

Comments
 (0)