From c8152fc3bfcfbc1a4d0cc4174397b81632107e09 Mon Sep 17 00:00:00 2001 From: N Date: Wed, 11 Jul 2018 00:07:01 +0100 Subject: [PATCH] delete-fifo before make-fifo --- bootstrap-salt.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index e85d522..122f4b8 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -457,6 +457,8 @@ shift $((OPTIND-1)) # Define our logging file and pipe paths LOGFILE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.log/g )" LOGPIPE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.logpipe/g )" +# Ensure no residual pipe exists +rm "$LOGPIPE" 2>/dev/null # Create our logging pipe # On FreeBSD we have to use mkfifo instead of mknod