diff --git a/CodexHelper/CodexHelper.sh b/CodexHelper/CodexHelper.sh index 45fee9b..9789798 100755 --- a/CodexHelper/CodexHelper.sh +++ b/CodexHelper/CodexHelper.sh @@ -15,7 +15,7 @@ if [[ ! -f "${SYSTEM_PROMPT_PATH}" ]]; then exit 1 fi -# Binary detection per NEWSTART.md guidance +# Binary detection: prefer $CODEX_BIN, then common names if [[ -n "${CODEX_BIN:-}" ]]; then BIN="${CODEX_BIN}" elif command -v codex >/dev/null 2>&1; then @@ -30,4 +30,3 @@ fi # Try a common flag name for supplying a system prompt. Adjust if needed. # Additional args are forwarded so callers can customize behavior. exec "${BIN}" --system-prompt "${SYSTEM_PROMPT_PATH}" "$@" -