From 28e2b058a4562a621b54a59f757764877d6440e1 Mon Sep 17 00:00:00 2001 From: Silas Date: Mon, 25 Mar 2019 18:36:55 -0300 Subject: [PATCH] Use portable -p instead of --tmpdir for mktemp -p is equivalent to --tmpdir, but more portable, since it works across GNU/Linux and *BSDs --- cdist/conf/type/__staged_file/gencode-local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__staged_file/gencode-local b/cdist/conf/type/__staged_file/gencode-local index e78b50bd..ba9e8798 100755 --- a/cdist/conf/type/__staged_file/gencode-local +++ b/cdist/conf/type/__staged_file/gencode-local @@ -63,7 +63,7 @@ fetch_file() { fetch_and_prepare_file() { # shellcheck disable=SC2016 - printf 'tmpdir="$(mktemp -d --tmpdir="/tmp" "%s")"\n' "${__type##*/}.XXXXXXXXXX" + printf 'tmpdir="$(mktemp -d -p "/tmp" "%s")"\n' "${__type##*/}.XXXXXXXXXX" # shellcheck disable=SC2016 printf 'cd "$tmpdir"\n' # shellcheck disable=SC2059