diff options
author | D. Johnson <fenris02@fedoraproject.org> | 2011-09-10 17:10:45 -0500 |
---|---|---|
committer | D. Johnson <fenris02@fedoraproject.org> | 2011-09-10 17:10:45 -0500 |
commit | 9063a71767b80574440d30a272191d79104d8d65 (patch) | |
tree | b0e9dc90a2743617f39b4494b4fa3f640528bbd2 /distro-clean.sh | |
parent | 44308ff6d456603a33d5894af966762491a601eb (diff) | |
download | cleanup-9063a71767b80574440d30a272191d79104d8d65.tar.gz cleanup-9063a71767b80574440d30a272191d79104d8d65.tar.xz cleanup-9063a71767b80574440d30a272191d79104d8d65.zip |
fix mkfifo tmppipe
Diffstat (limited to 'distro-clean.sh')
-rw-r--r-- | distro-clean.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distro-clean.sh b/distro-clean.sh index 09750cb..ecbba73 100644 --- a/distro-clean.sh +++ b/distro-clean.sh @@ -29,10 +29,10 @@ read [ -d "${TMPDIR}" ] || mkdir -p "${TMPDIR}" # Log all output to a file -PIPEFILE=$(mktemp ${TMPDIR}/${0##*/}-XXXXX.pipe) +PIPEFILE=$(mktemp -u ${TMPDIR}/${0##*/}-XXXXX.pipe) mkfifo $PIPEFILE LOGFILE=$(mktemp ${TMPDIR}/${0##*/}-XXXXX.log) -tee $LOGFILE < $PIPEFILE & +tee -a $LOGFILE < $PIPEFILE & TEEPID=$! [[ -t 1 ]] && echo "Writing to logfile '$LOG'." |