9 Sep
2011
9 Sep
'11
2:18 a.m.
If we use the `mktemp --tmpdir` option, we are able to honor TMPDIR without much difficulty. Change the template to not hardcode '/tmp'. Signed-off-by: Dan McGee <dan@archlinux.org> --- namcap | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/namcap b/namcap index edb9de8..47d7f16 100755 --- a/namcap +++ b/namcap @@ -1,7 +1,7 @@ #!/bin/bash args='' -tmp=$(mktemp -d /tmp/namcap.XXXXXXXXXX) +tmp=$(mktemp -d --tmpdir namcap.XXXXXXXXXX) cleanup() { rm -rf "${tmp}" } -- 1.7.6.1