From 0eb12dfbfe7361ef2197849bd1c115307df0f826 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 12 Oct 2022 22:46:58 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/entrypoint-bun.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/entrypoint-bun.sh b/bin/entrypoint-bun.sh index ca8787f..afee171 100755 --- a/bin/entrypoint-bun.sh +++ b/bin/entrypoint-bun.sh @@ -154,8 +154,8 @@ bun) *) # Execute primary command if [ $# -eq 0 ]; then - if [ -n "$RUN_SCRIPT" ]; then - START_SCRIPT="$RUN_SCRIPT" + if [ -n "$START_SCRIPT" ]; then + RUN_SCRIPT="$START_SCRIPT" elif [ -f "src/index.ts" ]; then RUN_SCRIPT="index.ts" elif [ -f "index.ts" ]; then @@ -168,7 +168,7 @@ bun) echo "Running bun install" bun install 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:-$?} else __exec_command "$@"