Skip to content

Commit d1b66c4

Browse files
authored
sync-superchain: remove use of declare -A for ancient bash compatibility (#582)
1 parent 2b9abb3 commit d1b66c4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sync-superchain.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ echo "Generating index of configs..."
3232

3333
echo "{}" >chains.json
3434

35-
# List of chain IDs to exclude
36-
declare -A EXCLUDE_CHAIN_IDS
37-
EXCLUDE_CHAIN_IDS=(["28882"]=1) # Boba
38-
3935
# Function to process each network directory
4036
process_network_dir() {
4137
local network_dir="$1"
@@ -54,8 +50,8 @@ process_network_dir() {
5450
chain_id=$(dasel -f "$toml_file" -r toml "chain_id" | tr -d '"')
5551
chain_name="$(basename "${toml_file%.*}")"
5652

57-
# Skip if chain_id is empty or in the exclusion list
58-
if [[ -z "$chain_id" || -v EXCLUDE_CHAIN_IDS["$chain_id"] ]]; then
53+
# Skip if chain_id is empty or Boba's (28882)
54+
if [[ -z "$chain_id" || "$chain_id" -eq 28882 ]]; then
5955
echo "Skipping $network_name/$chain_name ($chain_id)"
6056
rm "$toml_file"
6157
rm "genesis/$network_name/$chain_name.json.zst"

0 commit comments

Comments
 (0)