Files
ethereum-rpc-docker/show-status.sh
Sebastian ce0ca0234b update
2024-03-21 01:42:11 +01:00

28 lines
532 B
Bash
Executable File

#!/bin/bash
BASEPATH="$(dirname "$0")"
source $BASEPATH/.env
IFS=':' read -ra parts <<< $COMPOSE_FILE
blacklist=("drpc.yml" "drpc-free.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=$($BASEPATH/sync-status.sh "${part%.yml}")
echo "${part%.yml}: $result"
fi
done