From a0c6bf4556e211037b9d9d6de3fd17f798a3c1fb Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 13 Oct 2011 11:03:35 +0200 Subject: Honor TMPDIR environment variable Replace all mktemp(1) invocations that hardcode "/tmp" with `mktemp --tmpdir` and change templates accordingly. Note that "--tmpdir" is GNU-ish which is okay given that we currently support Arch Linux only anyway. Signed-off-by: Lukas Fleischer --- checkpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'checkpkg.in') diff --git a/checkpkg.in b/checkpkg.in index 94a7529..cde3dc2 100644 --- a/checkpkg.in +++ b/checkpkg.in @@ -24,7 +24,7 @@ if [[ $arch == 'any' ]]; then fi STARTDIR=$(pwd) -TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX) +TEMPDIR=$(mktemp -d --tmpdir checkpkg-script.XXXX) cd "$TEMPDIR" for _pkgname in "${pkgname[@]}"; do -- cgit v1.2.3-70-g09d2