replaced mktemp with a perl equivalent to make the setup usable on machines without mktemp.
This commit is contained in:
parent
d3b2dda5df
commit
3fab743fc3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue