mirror of
https://codeberg.org/frosty/dotfiles.git
synced 2024-09-19 03:37:10 -04:00
(bin): create named pipe updater script
This commit is contained in:
parent
12e42cd8ea
commit
5641ae97ed
8
.local/bin/update-pipe
Executable file
8
.local/bin/update-pipe
Executable 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"
|
Loading…
Reference in a new issue