From fcf87332292ef08bca76dd9f3581429f82246387 Mon Sep 17 00:00:00 2001 From: lmessier Date: Tue, 8 Sep 2020 17:05:55 +0200 Subject: [PATCH] fix: #12 use short options -d and -p for --directory and --tmp-dir --- src/temp.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/temp.bash b/src/temp.bash index 1361836..3670818 100644 --- a/src/temp.bash +++ b/src/temp.bash @@ -99,7 +99,7 @@ temp_make() { template+='-XXXXXXXXXX' local path - path="$(mktemp --directory --tmpdir="$BATS_TMPDIR" -- "$template" 2>&1)" + path="$(mktemp -d -p="$BATS_TMPDIR" -- "$template" 2>&1)" if (( $? )); then echo "$path" \ | batslib_decorate 'ERROR: temp_make' \