Skip to content

Commit b86206a

Browse files
authored
fix(dev): mktemp: too few X's in template (#94465)
For maximum compatibility, busybox mktemp requires at least six X's and that they appear at the end. Then there's no more need to try twice.
1 parent 9eb2486 commit b86206a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if [ -n "${SENTRY_DEVENV_NO_REPORT+x}" ]; then
121121
else
122122
# Since direnv traps the EXIT signal we place the temp file under /tmp for the odd time
123123
# the script will use the EXIT path
124-
_SENTRY_LOG_FILE=$(mktemp /tmp/sentry.envrc.$$.out || mktemp /tmp/sentry.envrc.XXXXXXXX.out)
124+
_SENTRY_LOG_FILE=$(mktemp /tmp/sentry.envrc.out.$$.XXXXXX)
125125
exec > >(tee "$_SENTRY_LOG_FILE")
126126
exec 2>&1
127127
debug "Development errors will be reported to Sentry.io. If you wish to opt-out, set SENTRY_DEVENV_NO_REPORT as an env variable."

0 commit comments

Comments
 (0)