Skip to content

Commit 80c8e88

Browse files
committed
Make command compatible with mktemp from GNU coreutils
We could also call /usr/bin/mktemp directly (to avoid a problem for users whose PATH point to GNU coreutils before /usr/bin), but I think it is good practice to avoid BSD/macOS specific options, when possible.
1 parent cc68c3b commit 80c8e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Support/bin/bootstrap.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
A_OUT=$(mktemp -t "${TM_DISPLAYNAME:-untitled}")
3+
A_OUT=$(mktemp "${TMPDIR}/${TM_DISPLAYNAME:-untitled}_XXX")
44
trap 'rm "$A_OUT"' EXIT
55

66
"$@" -o "$A_OUT"

0 commit comments

Comments
 (0)