Files
ethereum-rpc-docker/show-status.sh
Sebastian 0d72a7d0a7 stats
2024-03-19 06:11:54 +01:00

27 lines
492 B
Bash
Executable File

#!/bin/bash
BASEPATH=/root/rpc
source $BASEPATH/.env
IFS=':' read -ra parts <<< $COMPOSE_FILE
blacklist=("drpc.yml" "base.yml" "rpc.yml" "monitoring.yml")
for part in "${parts[@]}"; do
include=true
for word in "${blacklist[@]}"; do
if echo "$part" | grep -qE "$word"; then
#echo "The path $path contains a blacklisted word: $word"
include=false
fi
done
if $include; then
result=$(./sync-status.sh "${part%.yml}")
echo "$part: $result"
fi
done