mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-18 17:37:02 +01:00
mktemp: use TMPDIR environment variable or use fallback to /tmp directory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user