Skip to content

Commit

Permalink
Fix issue on OS X when creating a temporary file
Browse files Browse the repository at this point in the history
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
  • Loading branch information
johnmichel committed May 13, 2015
1 parent d960a59 commit 56232aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/_stack_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 56232aa

Please sign in to comment.