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"