dotoold: rm -rf pipe -> rm -f -- pipe
This commit is contained in:
parent
c778104f02
commit
c427ab5394
1 changed files with 2 additions and 2 deletions
4
dotoold
4
dotoold
|
@ -18,8 +18,8 @@ if fifo_being_read "$p" 2> /dev/null; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf "$p" || exit 1
|
||||
trap 'rm -rf "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP
|
||||
rm -f -- "$p" || exit 1
|
||||
trap 'rm -f -- "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP
|
||||
mkfifo -m 660 "$p" || exit 1
|
||||
dotool <> "$p" &
|
||||
wait
|
||||
|
|
Loading…
Reference in a new issue