summaryrefslogtreecommitdiffstats
path: root/distro-clean.sh
diff options
context:
space:
mode:
authorD. Johnson <fenris02@fedoraproject.org>2011-09-10 17:07:51 -0500
committerD. Johnson <fenris02@fedoraproject.org>2011-09-10 17:07:51 -0500
commit44308ff6d456603a33d5894af966762491a601eb (patch)
tree481c466b83303ed95633742d1b96da532bcede4d /distro-clean.sh
parentc73af06b33b214fc5e013436530ef2671b3c00be (diff)
downloadcleanup-44308ff6d456603a33d5894af966762491a601eb.tar.gz
cleanup-44308ff6d456603a33d5894af966762491a601eb.tar.xz
cleanup-44308ff6d456603a33d5894af966762491a601eb.zip
Use TMPDIR instead of hard paths.
Diffstat (limited to 'distro-clean.sh')
-rw-r--r--distro-clean.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/distro-clean.sh b/distro-clean.sh
index 33552e9..09750cb 100644
--- a/distro-clean.sh
+++ b/distro-clean.sh
@@ -29,9 +29,9 @@ read
[ -d "${TMPDIR}" ] || mkdir -p "${TMPDIR}"
# Log all output to a file
-PIPEFILE=$(mktemp /root/tmp/${0##*/}-XXXXX.pipe)
+PIPEFILE=$(mktemp ${TMPDIR}/${0##*/}-XXXXX.pipe)
mkfifo $PIPEFILE
-LOGFILE=$(mktemp /root/tmp/${0##*/}-XXXXX.log)
+LOGFILE=$(mktemp ${TMPDIR}/${0##*/}-XXXXX.log)
tee $LOGFILE < $PIPEFILE &
TEEPID=$!