Skip to content

Commit 67d9c29

Browse files
glwagnerAzrael3000
authored andcommitted
Use mktemp -u rather than mktemp --dry-run
`mktemp --dry-run` is not supported on Mac OS. I "tested" `mktemp -u` on one linux machine and it worked. But I'm not sure if this is a general fix. Feel free to disregard if it doesn't work, but thought I should pass along this tip for using `tmpi` on a Mac...
1 parent 43a07ca commit 67d9c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if [[ -z ${TMUX} ]]; then
4747
# it seems we aren't in a tmux session.
4848
# start a new one so that our window doesn't end up in some other session and we have to search it.
4949
# actually start a new server with '-L' to ensure that our environment carries over.
50-
socket=$(mktemp --dry-run tmpi.XXXX)
50+
socket=$(mktemp -u tmpi.XXXX)
5151
exec tmux ${TMPI_TMUX_OPTIONS} -L ${socket} new-session "${0} ${*}"
5252
fi
5353

0 commit comments

Comments
 (0)