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
tlimoncelli@stackexchange.com committed Jul 28, 2015
1 parent 1f2d994 commit 343b85a
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 create_self_deleting_tempfile() {
case $(uname -s) in
Darwin )
: ${TMPDIR:=/tmp} ;
filename=$(mktemp -t _stacklib_ )
filename=$(mktemp -t _stacklib_.XXXXXXXX )
;;
Linux )
filename=$(mktemp)
Expand Down

0 comments on commit 343b85a

Please sign in to comment.