MEAS: make sure the pipe is a pipe

This commit is contained in:
Keith Whyte 2020-04-28 23:52:41 +02:00
parent be9d9573b8
commit e2e8c76b70
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,9 @@
exec 2>&1
if [ ! -p /tmp/json_pipe ] ; then
if [ -f /tmp/json_pipe ] ; then
rm -f /tmp/json_pipe
fi
mkfifo /tmp/json_pipe
fi