From af770b5d5c73f0f6c4620d043c4df536c0755eba Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 24 Jun 2026 10:30:00 +0000 Subject: [PATCH] =?UTF-8?q?fix(entrypoint):=20=E9=81=BF=E5=85=8D=E6=9C=AA?= =?UTF-8?q?=E5=AE=9A=E7=BE=A9=E7=92=B0=E5=A2=83=E8=AE=8A=E6=95=B8=E4=B8=AD?= =?UTF-8?q?=E6=AD=A2=E5=9F=B7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index cc5e074..42ab7c0 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -euo pipefail +set -eo pipefail if [[ -z "${OAUTH:-}" ]]; then echo "OAUTH is required: provide base64 encoded Codex auth.json." >&2 @@ -13,6 +13,7 @@ if [[ -z "${MODEL:-}" ]]; then fi CODEX_HOME="${CODEX_HOME:-/root/.codex}" +PROMPT="${PROMPT:-請自我介紹}" mkdir -p "$CODEX_HOME" printf '%s' "$OAUTH" | base64 -d > "$CODEX_HOME/auth.json" chmod 600 "$CODEX_HOME/auth.json"