From 56232aafc895311d97572e624ed1813825bc3b34 Mon Sep 17 00:00:00 2001 From: John Michel Date: Wed, 13 May 2015 14:17:38 -0400 Subject: [PATCH] Fix issue on OS X when creating a temporary file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 3d43bb0..3b20bde 100755 --- a/bin/_stack_lib.sh +++ b/bin/_stack_lib.sh @@ -55,7 +55,7 @@ function make_self_deleting_tempfile() { case $(uname -s) in Darwin ) : ${TMPDIR:=/tmp} ; - name=$(mktemp -t _stacklib_ ) + name=$(mktemp -t _stacklib_.XXXXXXX ) ;; Linux ) name=$(mktemp)