From 36da2549891d0d67ed267b3bc5336bf14b2c64de Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 7 Apr 2020 07:00:06 -0500 Subject: made hackvr_term not bother with background squares for now. added an exec and pipefail to hackvr_data_decode.sh --- share/hackvr/examples/hackvr_term/hackvr_data_decode.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'share/hackvr/examples/hackvr_term/hackvr_data_decode.sh') diff --git a/share/hackvr/examples/hackvr_term/hackvr_data_decode.sh b/share/hackvr/examples/hackvr_term/hackvr_data_decode.sh index 0ac04f2..85c64af 100755 --- a/share/hackvr/examples/hackvr_term/hackvr_data_decode.sh +++ b/share/hackvr/examples/hackvr_term/hackvr_data_decode.sh @@ -1,2 +1,3 @@ -#!/bin/sh -grep --line-buffered '^[^ ]* data ' | stdbuf -oL tr -s ' ' | stdbuf -oL cut '-d ' -f3- | stdbuf -o0 xxd -r -p +#!/usr/bin/env bash +set -eo pipefail +exec grep --line-buffered '^[^ ]* data ' | stdbuf -oL tr -s ' ' | stdbuf -oL cut '-d ' -f3- | stdbuf -o0 xxd -r -p -- cgit v1.2.3