mirror of
https://github.com/zoriya/cish.git
synced 2026-08-16 02:44:46 +00:00
Add websocat
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# vi: ft=sh
|
||||
# shellcheck disable=SC2034
|
||||
|
||||
WSURL=""
|
||||
+1
-1
@@ -5,7 +5,7 @@ SCRIPT=$(realpath "$1")
|
||||
cd -- "$(dirname -- "$SCRIPT")"
|
||||
|
||||
exec \
|
||||
3>&1 \
|
||||
3> >(tee >(websocat "$WSURL" > /dev/null) >&1) \
|
||||
2> >(sed -u "s/^/[ERR] /" >&3) \
|
||||
> >(sed -u "s/^/[INF] /" >&3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user