]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
make arguments to _mktemp optional (fixes #178)
authorLukas Schauer <lukas@schauer.so>
Tue, 5 Apr 2016 18:08:40 +0000 (20:08 +0200)
committerLukas Schauer <lukas@schauer.so>
Tue, 5 Apr 2016 18:08:40 +0000 (20:08 +0200)
letsencrypt.sh

index 6606ac322db369eed41ae06fbb46e96a256156a9..44e6c2986726a35403fd7ff07ed678cb5be09ab4 100755 (executable)
@@ -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