summaryrefslogtreecommitdiff
path: root/lddd
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-07-13 15:10:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-07-13 15:10:47 +0200
commit65d654a9d7f021d128bf783e0f498cf9b5c9a7a3 (patch)
tree90f7573c629b4820ce4d8e823c549b96d3169514 /lddd
parentcfdfbd99f84eb5877f25345e129955eeb2d9fc4e (diff)
downloaddevtools-65d654a9d7f021d128bf783e0f498cf9b5c9a7a3.tar.xz
lddd: correct mktemp usage
Diffstat (limited to 'lddd')
-rwxr-xr-xlddd4
1 files changed, 1 insertions, 3 deletions
diff --git a/lddd b/lddd
index 64d11a8..643782c 100755
--- a/lddd
+++ b/lddd
@@ -9,9 +9,7 @@ IFS=':'
libdirs='/lib:/usr/lib:/opt/qt/lib:/opt/kde/lib:/usr/lib/libfakeroot:/opt/NX/lib'
extras=
-TEMPDIR=$(mktemp /tmp/lddd-script.XXXX)
-rm $TEMPDIR
-mkdir -p $TEMPDIR
+TEMPDIR=$(mktemp -d /tmp/lddd-script.XXXX)
echo 'Go out and drink some tea, this will take a while :) ...'
# Check ELF binaries in the PATH and specified dir trees.