mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-12-04 05:36:20 +01:00
mktemp: use TMPDIR environment variable or use fallback to /tmp directory
This commit is contained in:
1 parent
fa6857fe06
commit
c3dbfe88d4
1 file changed
+1
-1
+1
-1
@@ -25,7 +25,7 @@ BASEDIR="${SCRIPTDIR}"
|
|||||||
# Create (identifiable) temporary files
|
# Create (identifiable) temporary files
|
||||||
_mktemp() {
|
_mktemp() {
|
||||||
# shellcheck disable=SC2068
|
# shellcheck disable=SC2068
|
||||||
mktemp ${@:-} letsencrypt.sh-XXXXXX
|
mktemp ${@:-} "${TMPDIR:-/tmp}/letsencrypt.sh-XXXXXX"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check for script dependencies
|
# Check for script dependencies
|
||||||
|
|||||||
Reference in new issue
Block a user