From: Lukas Schauer Date: Sat, 23 Apr 2016 18:53:29 +0000 (+0200) Subject: mktemp: use TMPDIR environment variable or use fallback to /tmp directory X-Git-Tag: v0.2.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3dbfe88d4e663d3ba9889a697f5e5ad23ce093f;p=thirdparty%2Fdehydrated.git mktemp: use TMPDIR environment variable or use fallback to /tmp directory --- diff --git a/letsencrypt.sh b/letsencrypt.sh index 2bdc7a1..b1f3622 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -25,7 +25,7 @@ BASEDIR="${SCRIPTDIR}" # Create (identifiable) temporary files _mktemp() { # shellcheck disable=SC2068 - mktemp ${@:-} letsencrypt.sh-XXXXXX + mktemp ${@:-} "${TMPDIR:-/tmp}/letsencrypt.sh-XXXXXX" } # Check for script dependencies