Skip to content

Commit eab9efa

Browse files
wbornkaikreuzer
authored andcommitted
Fix Travis build (openhab#70)
Using the -a switch grep will treat binary data as text so the pipe no longer chokes on it. Signed-off-by: Wouter Born <[email protected]>
1 parent 4ee9f05 commit eab9efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ install:
3535
local command=(mvn $@)
3636
exec "${command[@]}" 2>&1 | # execute, redirect stderr to stdout
3737
tee .build.log | # write output to log
38-
stdbuf -oL grep -E '^\[INFO\] Building .+ \[.+\]$' | # filter progress
38+
stdbuf -oL grep -aE '^\[INFO\] Building .+ \[.+\]$' | # filter progress
3939
sed -uE 's/^\[INFO\] Building (.*[^ ])[ ]+\[([0-9]+\/[0-9]+)\]$/\2| \1/' | # prefix project name with progress
4040
sed -e :a -e 's/^.\{1,4\}|/ &/;ta' & # right align progress with padding
4141
local pid=$!

0 commit comments

Comments
 (0)