From 3fab743fc3f6a3d0ba6333135178db6b1ec2e9a7 Mon Sep 17 00:00:00 2001 From: Arno Gramatke Date: Thu, 1 Mar 2012 21:17:08 +0100 Subject: [PATCH] replaced mktemp with a perl equivalent to make the setup usable on machines without mktemp. --- src/gl-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl-setup b/src/gl-setup index 2af7e3e..2299f2a 100755 --- a/src/gl-setup +++ b/src/gl-setup @@ -32,7 +32,7 @@ get_rc_val() { # tempdir setup # ---------------------------------------------------------------------- -TEMPDIR=`mktemp -d -t tmp.XXXXXXXXXX` +TEMPDIR=`perl -MFile::Temp -l -e 'print File::Temp::tempdir("tmp.XXXXXXXXXX", TMPDIR => 1);'` export TEMPDIR trap "/bin/rm -rf $TEMPDIR" 0