入庫 responsive overflow guard 腳本
All checks were successful
CD Pipeline / deploy (push) Successful in 56s
All checks were successful
CD Pipeline / deploy (push) Successful in 56s
This commit is contained in:
20
scripts/check_responsive_overflow.sh
Executable file
20
scripts/check_responsive_overflow.sh
Executable 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" "$@"
|
||||
Reference in New Issue
Block a user