From b46b4d070db5ba4b302c7235e52951b0a1af3f1f Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Fri, 19 Dec 2025 11:35:13 -0500 Subject: [PATCH] Handle hidden files, for example: `.DS_Store`. --- tooling/cleanup-gradle-module.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/cleanup-gradle-module.sh b/tooling/cleanup-gradle-module.sh index 79324dffddb..0bdd5d984c1 100755 --- a/tooling/cleanup-gradle-module.sh +++ b/tooling/cleanup-gradle-module.sh @@ -33,7 +33,7 @@ find "$ROOT_DIR" -type d | sort -r | while read -r dir; do # Check if the directory contains only a 'build' directory if [ -d "$dir/build" ]; then # List all items except 'build' - OTHERS=$(find "$dir" -mindepth 1 -maxdepth 1 ! -name 'build') + OTHERS=$(find "$dir" -mindepth 1 -maxdepth 1 ! -name 'build' ! -name '.*') if [ -z "$OTHERS" ]; then if [[ $BACKUP_MODE -eq 1 ]]; then # Move to backup dir, preserving relative path