From e7019fb09653472bb57474638188dcba337f1a3c Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 18 Apr 2020 02:38:17 -0500 Subject: made the tee in hackvr_uri exit on a write error so that if you exit hackvr it'll stop the script --- bin/hackvr_uri | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/hackvr_uri b/bin/hackvr_uri index 7907d9b..19c0f37 100755 --- a/bin/hackvr_uri +++ b/bin/hackvr_uri @@ -1,6 +1,8 @@ #!/bin/bash #this is a version of hackvr that will attempt to launch URIs that your user actions on. -hackvr \ +set -o pipefail +tee --output-error=exit /dev/stderr | hackvr \ + | grep --line-buffered -v '^#' \ | tee \ >(sed -un "s/$USER *action *<\([^ ]*\)>/\1/p" \ | stdbuf -o0 tr '\n' '\0' \ -- cgit v1.2.3