From c03d309102ec00571c991c48f23f9c03e0d78f32 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 17 Sep 2019 03:07:48 +0300 Subject: Travis: proper binary output detection in online_sessions.sh --- .travis/online_sessions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.travis/online_sessions.sh') diff --git a/.travis/online_sessions.sh b/.travis/online_sessions.sh index 79ce878..112b46e 100755 --- a/.travis/online_sessions.sh +++ b/.travis/online_sessions.sh @@ -16,7 +16,8 @@ _online_sessions() { echo "Running online_sessions.py..." python3 -m bin.online_sessions "$@" "$db_path" "$output_path" - if file --brief --dereference --mime -- "$output_path" | grep --quiet -- '^binary'; then + if file --brief --dereference --mime -- "$output_path" | grep --quiet -- 'charset=binary$'; then + echo 'Output is a binary file, not going to show that' return 0 fi -- cgit v1.2.3