Skip to content

Commit d4b81de

Browse files
Handle hidden files. (#10260)
1 parent 25109a9 commit d4b81de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tooling/cleanup-gradle-module.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ find "$ROOT_DIR" -type d | sort -r | while read -r dir; do
3333
# Check if the directory contains only a 'build' directory
3434
if [ -d "$dir/build" ]; then
3535
# List all items except 'build'
36-
OTHERS=$(find "$dir" -mindepth 1 -maxdepth 1 ! -name 'build')
36+
OTHERS=$(find "$dir" -mindepth 1 -maxdepth 1 ! -name 'build' ! -name '.*')
3737
if [ -z "$OTHERS" ]; then
3838
if [[ $BACKUP_MODE -eq 1 ]]; then
3939
# Move to backup dir, preserving relative path

0 commit comments

Comments
 (0)