dotfiles/.local/bin/update-pipe

9 lines
127 B
Plaintext
Raw Normal View History

#!/bin/sh
pipe="$1"
update="$2"
PIPE_FILE="/tmp/pipe-$pipe"
[ -p "$PIPE_FILE" ] || mkfifo "$PIPE_FILE"
$update >"$PIPE_FILE"