chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
38
scripts/deployment/check-syntax.sh
Executable file
38
scripts/deployment/check-syntax.sh
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
# Check bash syntax of deployment scripts and lib (bash -n). Run from anywhere.
|
||||
# Usage: ./scripts/deployment/check-syntax.sh or bash scripts/deployment/check-syntax.sh
|
||||
set -euo pipefail
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
||||
cd "$REPO_ROOT"
|
||||
|
||||
FAIL=0
|
||||
|
||||
check() {
|
||||
if bash -n "$1" 2>/dev/null; then
|
||||
echo " OK $1"
|
||||
else
|
||||
echo " FAIL $1"
|
||||
FAIL=1
|
||||
fi
|
||||
}
|
||||
|
||||
echo "Checking deployment scripts and lib..."
|
||||
check scripts/lib/deployment/prompts.sh
|
||||
check scripts/lib/deployment/dotenv.sh
|
||||
check scripts/deployment/fund-mainnet-lp.sh
|
||||
check scripts/deployment/run-all-four-gaps.sh
|
||||
check scripts/deployment/deploy-pmm-all-l2s.sh
|
||||
check scripts/deployment/deploy-trustless-l2s.sh
|
||||
check scripts/deployment/fund-ccip-bridges-with-link.sh
|
||||
check scripts/deployment/fix-nonce-and-retry.sh
|
||||
check scripts/deployment/run-remaining-g2g3-with-nonce-fix.sh
|
||||
check scripts/deployment/run-pmm-and-pools.sh
|
||||
check scripts/deployment/check-balances-gas-and-deploy.sh
|
||||
|
||||
if [[ "$FAIL" -eq 0 ]]; then
|
||||
echo "All passed."
|
||||
else
|
||||
echo "Some checks failed."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user