Merge pull request #1256 from noelmcloughlin/freebsd

Ensure pipe is absent before mkfifo/mknod
This commit is contained in:
Nicole Thomas 2018-07-11 08:59:59 -04:00 committed by GitHub
commit d276f9cd1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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