From 343b85a34cbfc9bca7458bbf660eeb7c940d25f4 Mon Sep 17 00:00:00 2001 From: "tlimoncelli@stackexchange.com" Date: Tue, 28 Jul 2015 08:21:52 -0400 Subject: [PATCH] Fix issue on OS X when creating a temporary file This prevents the "mktemp: too few X's in template _stacklib_" error message from appearing when adding another admin to blackbox and allows the command to successfully execute. Related: rtomayko/shocco#5 http://unix.stackexchange.com/q/87638/63283 --- bin/_stack_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/_stack_lib.sh b/bin/_stack_lib.sh index 2064fd4..93d67d3 100755 --- a/bin/_stack_lib.sh +++ b/bin/_stack_lib.sh @@ -55,7 +55,7 @@ function create_self_deleting_tempfile() { case $(uname -s) in Darwin ) : ${TMPDIR:=/tmp} ; - filename=$(mktemp -t _stacklib_ ) + filename=$(mktemp -t _stacklib_.XXXXXXXX ) ;; Linux ) filename=$(mktemp)