入庫 responsive overflow guard 腳本
All checks were successful
CD Pipeline / deploy (push) Successful in 56s

This commit is contained in:
OoO
2026-05-13 12:13:09 +08:00
parent ec93d09c18
commit b2ab03f0d0
3 changed files with 327 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -euo pipefail
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
BUNDLED_NODE="$HOME/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin/node"
BUNDLED_NODE_MODULES="$HOME/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules"
if [ -z "${NODE_BIN:-}" ] && [ -x "$BUNDLED_NODE" ]; then
NODE_BIN="$BUNDLED_NODE"
fi
if [ -z "${NODE_BIN:-}" ]; then
NODE_BIN="node"
fi
if [ -d "$BUNDLED_NODE_MODULES" ] && [ -z "${NODE_PATH:-}" ]; then
export NODE_PATH="$BUNDLED_NODE_MODULES"
fi
exec "$NODE_BIN" "$PROJECT_ROOT/scripts/check_responsive_overflow.js" "$@"