dotoold: rm -rf pipe -> rm -f -- pipe

This commit is contained in:
John Gebbie 2023-01-25 17:08:23 +00:00
parent c778104f02
commit c427ab5394

View file

@ -18,8 +18,8 @@ if fifo_being_read "$p" 2> /dev/null; then
exit 1 exit 1
fi fi
rm -rf "$p" || exit 1 rm -f -- "$p" || exit 1
trap 'rm -rf "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP trap 'rm -f -- "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP
mkfifo -m 660 "$p" || exit 1 mkfifo -m 660 "$p" || exit 1
dotool <> "$p" & dotool <> "$p" &
wait wait