diff --git a/.local/bin/update-pipe b/.local/bin/update-pipe new file mode 100755 index 0000000..2bbaab3 --- /dev/null +++ b/.local/bin/update-pipe @@ -0,0 +1,8 @@ +#!/bin/sh + +pipe="$1" +update="$2" + +PIPE_FILE="/tmp/pipe-$pipe" +[ -p "$PIPE_FILE" ] || mkfifo "$PIPE_FILE" +$update >"$PIPE_FILE"