Skip to content

Commit ac7c33f

Browse files
committed
fix travis-ci hosts
1 parent 3dd55dd commit ac7c33f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ language: scala
33
before_install:
44
- cat /etc/hosts # optionally check the content *before*
55
- sudo hostname "$(hostname | cut -c1-63)"
6-
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
6+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
7+
- sudo mv /tmp/hosts /etc/hosts
78
- cat /etc/hosts # optionally check the content *after*
89

910
env:

0 commit comments

Comments
 (0)