diff options
author | Moritz Wilhelmy <moritz+git@wzff.de> | 2011-09-12 00:33:38 +0200 |
---|---|---|
committer | Moritz Wilhelmy <moritz+git@wzff.de> | 2011-09-12 00:33:38 +0200 |
commit | c60d099af199808d6a3eb4289b5b9a5fec4f36be (patch) | |
tree | 319818e24ec1d85c9469317d55d2abd500af49fd /fb.in | |
parent | 1cf5d371d57aebf4d4eac358f8a4ad9d6b9f603e (diff) |
fix mktemp line
"-t" expands to $TMPDIR (or /tmp if unset), which means, the user can
override in which directory temporary files are created.
This works with GNU mktemp (although GNU deprecated -t) as well as BSD
mktemp (does not replace X by random characters but rather appends them;
this does not matter much) and busybox mktemp (which requires the number
of X's to be exactly 6)
Diffstat (limited to 'fb.in')
-rw-r--r-- | fb.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -144,7 +144,7 @@ done shift `expr $OPTIND - 1` -TMPDIR="`mktemp -d "/tmp/fb.XXXXXX"`" +TMPDIR="`mktemp -dt "fb.XXXXXX"`" trap "rm -rf '${TMPDIR}'" EXIT TERM if [ $# -eq 0 ]; then |