Remove mysql pipes early

This commit is contained in:
Vincent Riquer 2017-06-09 10:11:37 +02:00
parent b4afedb70f
commit dc29803438
2 changed files with 1 additions and 1 deletions

View File

@ -7,5 +7,4 @@ closeDatabase() {
(( debug )) && echo OK (( debug )) && echo OK
exec 3>&- exec 3>&-
exec 4<&- exec 4<&-
rm "$tempdir"/sqlite.{in,out}
} }

View File

@ -7,6 +7,7 @@ openDatabase() {
> "$tempdir/sqlite.out" & > "$tempdir/sqlite.out" &
exec 3> "$tempdir"/sqlite.in exec 3> "$tempdir"/sqlite.in
exec 4< "$tempdir"/sqlite.out exec 4< "$tempdir"/sqlite.out
rm "$tempdir"/sqlite.in "$tempdir"/sqlite.out
if (( debug > 2 )) if (( debug > 2 ))
then then
exec 5>&3 exec 5>&3