replaced mktemp with a perl equivalent to make the setup usable on machines without mktemp.

This commit is contained in:
Arno Gramatke 2012-03-01 21:17:08 +01:00 committed by Sitaram Chamarty
parent d3b2dda5df
commit 3fab743fc3

View file

@ -32,7 +32,7 @@ get_rc_val() {
# tempdir setup # tempdir setup
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
TEMPDIR=`mktemp -d -t tmp.XXXXXXXXXX` TEMPDIR=`perl -MFile::Temp -l -e 'print File::Temp::tempdir("tmp.XXXXXXXXXX", TMPDIR => 1);'`
export TEMPDIR export TEMPDIR
trap "/bin/rm -rf $TEMPDIR" 0 trap "/bin/rm -rf $TEMPDIR" 0