make arguments to _mktemp optional (fixes #178)

This commit is contained in:
Lukas Schauer
2016-04-05 20:08:40 +02:00
parent 33f07fcc0b
commit 75985c6a8a

View File

@@ -24,7 +24,8 @@ BASEDIR="${SCRIPTDIR}"
# Create (identifiable) temporary files
_mktemp() {
mktemp -t letsencrypt.sh-XXXXXX "${@}"
# shellcheck disable=SC2068
mktemp -t letsencrypt.sh-XXXXXX ${@:-}
}
# Check for script dependencies