Not sure why open_pipe made a temp directory, now it makes a temp file instead
This commit is contained in:
parent
5ba009a885
commit
67d8b3ffb7
7
qq2clone
7
qq2clone
|
@ -60,11 +60,10 @@ open_pipe ()
|
|||
#=========================================================================#
|
||||
{
|
||||
check_pipe && return
|
||||
local TEMPDIR
|
||||
TEMPDIR=$(mktemp -d) || temp_error
|
||||
local fifo_path
|
||||
fifo_path=$(mktemp) || temp_error
|
||||
#shellcheck disable=2064
|
||||
trap "exec 3>&-; exec 3<&-;rm -rf $TEMPDIR" EXIT
|
||||
fifo_path="${TEMPDIR}/qq2clone_fifo"
|
||||
trap "exec 3>&-; exec 3<&-;rm -f $fifo_path" EXIT
|
||||
mkfifo "$fifo_path" || fifo_error
|
||||
exec 3<>"$fifo_path"
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue