Files
ewoooc/scripts/check_responsive_overflow.sh
OoO b2ab03f0d0
All checks were successful
CD Pipeline / deploy (push) Successful in 56s
入庫 responsive overflow guard 腳本
2026-05-13 12:13:09 +08:00

21 lines
624 B
Bash
Executable File

#!/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" "$@"