Skip to content

Commit e8bccd8

Browse files
committed
Use explicit [0-9] instead of \d in go verion regex to make the Ubuntu version of grep happy
1 parent e33bd48 commit e8bccd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ go:
77
before_install:
88
- go get -u github.com/kardianos/govendor
99
- go get github.com/mitchellh/gox
10-
- export GO_VERSION=$(go version | cut -d' ' -f3 | grep -Eo '\d+\.\d+\.\d+')
10+
- export GO_VERSION=$(go version | cut -d' ' -f3 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
1111
install:
1212
- govendor sync
1313
script:

0 commit comments

Comments
 (0)