biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / dotool / fix-paths.patch
blob5ddab5a7e28803c627f91ef968fc90dfbb7ae108
1 diff --git a/dotoolc b/dotoolc
2 index e2f7bba..6d1879e 100755
3 --- a/dotoolc
4 +++ b/dotoolc
5 @@ -7,7 +7,7 @@ is $DOTOOL_PIPE else /tmp/dotool-pipe.' >&2
6 fi
8 fifo_being_read(){
9 - [ -p "$1" ] && /bin/echo 1<>"$1" >"$1"
10 + [ -p "$1" ] && echo 1<>"$1" >"$1"
13 p="${DOTOOL_PIPE:-/tmp/dotool-pipe}"
14 diff --git a/dotoold b/dotoold
15 index 48a7789..c405312 100755
16 --- a/dotoold
17 +++ b/dotoold
18 @@ -12,7 +12,7 @@ for the pipe is $DOTOOL_PIPE else /tmp/dotool-pipe.' >&2
19 done
21 fifo_being_read(){
22 - [ -p "$1" ] && /bin/echo 1<>"$1" >"$1"
23 + [ -p "$1" ] && echo 1<>"$1" >"$1"
26 p="${DOTOOL_PIPE:-/tmp/dotool-pipe}"
27 @@ -25,5 +25,5 @@ fi
28 rm -f -- "$p" || exit 1
29 trap 'rm -f -- "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP
30 mkfifo -m 660 "$p" || exit 1
31 -dotool "$@" <> "$p" &
32 +@dotool@ "$@" <> "$p" &
33 wait $!