mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
14 lines
250 B
Bash
Executable File
14 lines
250 B
Bash
Executable File
#!/bin/sh
|
|
|
|
LOG_FILE="${TMPDIR:-/tmp}/bun.debug.build.log.$$"
|
|
|
|
if bun run --silent build:debug > "$LOG_FILE" 2>&1; then
|
|
rm -f "$LOG_FILE"
|
|
exec ./build/debug/bun-debug "$@"
|
|
else
|
|
status=$?
|
|
cat "$LOG_FILE"
|
|
rm -f "$LOG_FILE"
|
|
exit "$status"
|
|
fi
|