summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/hackvr_uri4
1 files changed, 3 insertions, 1 deletions
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' \