(bin): create named pipe updater script

This commit is contained in:
frosty 2024-07-29 04:15:06 -04:00
parent 12e42cd8ea
commit 5641ae97ed

8
.local/bin/update-pipe Executable file
View file

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