Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agent/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ chmod 0644 "$CODEX_CONFIG"
# sourcing as root would execute a tampered line).
BUX_CP_CODEX_URL=''
if [ -f /etc/bux/env ]; then
BUX_CP_CODEX_URL="$(grep -E '^BUX_CP_CODEX_URL=' /etc/bux/env | tail -n1 | cut -d= -f2- | tr -d '"'\''')"
BUX_CP_CODEX_URL="$(grep -E '^BUX_CP_CODEX_URL=' /etc/bux/env | tail -n1 | cut -d= -f2- | tr -d '"'\''' || true)"
fi
# Empty (not configured for this env) -> skip writing the free-Codex provider.
if [ -z "$BUX_CP_CODEX_URL" ]; then
Expand Down Expand Up @@ -222,7 +222,7 @@ cat > /usr/local/bin/bu-cp-token <<'TOKENEOF'
set -euo pipefail
token=''
if [ -f /etc/bux/env ]; then
token="$(grep -E '^BUX_BOX_TOKEN=' /etc/bux/env | tail -n1 | cut -d= -f2- | tr -d '"'\''')"
token="$(grep -E '^BUX_BOX_TOKEN=' /etc/bux/env | tail -n1 | cut -d= -f2- | tr -d '"'\''' || true)"
fi
printf '%s' "$token"
TOKENEOF
Expand Down
Loading