From c427ab5394c7a0c1f25e6280efa98bcd71515cc8 Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Wed, 25 Jan 2023 17:08:23 +0000 Subject: [PATCH] dotoold: rm -rf pipe -> rm -f -- pipe --- dotoold | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotoold b/dotoold index 1b897ed..8dc6d06 100755 --- a/dotoold +++ b/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