mirror of
https://github.com/casjaysdevdocker/bun
synced 2025-01-18 12:34:33 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
15e2c2b946
commit
0eb12dfbfe
@ -154,8 +154,8 @@ bun)
|
|||||||
|
|
||||||
*) # Execute primary command
|
*) # Execute primary command
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
if [ -n "$RUN_SCRIPT" ]; then
|
if [ -n "$START_SCRIPT" ]; then
|
||||||
START_SCRIPT="$RUN_SCRIPT"
|
RUN_SCRIPT="$START_SCRIPT"
|
||||||
elif [ -f "src/index.ts" ]; then
|
elif [ -f "src/index.ts" ]; then
|
||||||
RUN_SCRIPT="index.ts"
|
RUN_SCRIPT="index.ts"
|
||||||
elif [ -f "index.ts" ]; then
|
elif [ -f "index.ts" ]; then
|
||||||
@ -168,7 +168,7 @@ bun)
|
|||||||
echo "Running bun install"
|
echo "Running bun install"
|
||||||
bun install
|
bun install
|
||||||
echo "Running bun dev ${RUN_SCRIPT:-$START_SCRIPT}"
|
echo "Running bun dev ${RUN_SCRIPT:-$START_SCRIPT}"
|
||||||
bun dev ${RUN_SCRIPT:-$START_SCRIPT} || echo "Failed to run bun dev ${RUN_SCRIPT:-$START_SCRIPT}"
|
bun dev ${RUN_SCRIPT:-$START_SCRIPT} || { echo "Failed to run bun dev ${RUN_SCRIPT:-$START_SCRIPT}" && return 1; }
|
||||||
exit ${exitCode:-$?}
|
exit ${exitCode:-$?}
|
||||||
else
|
else
|
||||||
__exec_command "$@"
|
__exec_command "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user