diff options
author | 2012-03-01 21:17:08 +0100 | |
---|---|---|
committer | 2012-03-02 06:50:33 +0530 | |
commit | 3fab743fc3f6a3d0ba6333135178db6b1ec2e9a7 (patch) | |
tree | 24825b8acf819068741797bc0360922e2a0cf1a5 | |
parent | fork ADC: stop carrying along non-gitolite hooks (diff) | |
download | gitolite-gentoo-3fab743fc3f6a3d0ba6333135178db6b1ec2e9a7.tar.gz gitolite-gentoo-3fab743fc3f6a3d0ba6333135178db6b1ec2e9a7.tar.bz2 gitolite-gentoo-3fab743fc3f6a3d0ba6333135178db6b1ec2e9a7.zip |
replaced mktemp with a perl equivalent to make the setup usable on machines without mktemp.
-rwxr-xr-x | src/gl-setup | 2 |
1 files changed, 1 insertions, 1 deletions
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 |