From c3d5534520ad41b8fee456b61182093a94bdbf06 Mon Sep 17 00:00:00 2001 From: Para Dox Date: Sun, 27 Apr 2025 17:51:24 +0700 Subject: [PATCH] new era --- scripts/prune-reth.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/prune-reth.sh b/scripts/prune-reth.sh index 18cfa19d..af1b2167 100755 --- a/scripts/prune-reth.sh +++ b/scripts/prune-reth.sh @@ -137,8 +137,21 @@ for group_name in "${group_names[@]}"; do # Iterate through all sorted base paths for the group for base in "${sorted_bases[@]}"; do filename=$(basename "$base") # Get the basename + + # --- Add Debugging --- + echo "--- DEBUG ---" + echo "Current base: '$base'" + echo "Current filename (key): '$filename'" + echo "Keys currently in files_to_keep_basenames:" + printf " > '%s'\n" "${!files_to_keep_basenames[@]}" # Print keys one per line for clarity + echo "Array structure:" + declare -p files_to_keep_basenames + echo "Attempting check: [[ -z \"\${files_to_keep_basenames['$filename']+x}\" ]]" + echo "--- END DEBUG ---" + # --- End Debugging --- + # If the basename is NOT marked to be kept (key doesn't exist in files_to_keep_basenames), move it - if [[ -z "${files_to_keep_basenames[$filename]+x}" ]]; then # <-- Check using basename (This corresponds to the line that previously failed) + if [[ -z "${files_to_keep_basenames[$filename]+x}" ]]; then # <-- Line 141 (approx) files_to_move+=("$base") # Add the full base path to the list of files to move fi done