Refactor find command in images-indexer.sh

This commit is contained in:
Matheus Albino
2024-08-11 12:16:29 -03:00
parent c200535990
commit d33c396627

View File

@@ -82,7 +82,14 @@ fi
cd $furry_commission_ideas_path
existing_folders=($(find * -type d -not -path artists -not -path kinks -not -path ideas))
ignore_paths=("artists" "kinks" "ideas" "irl")
find_command="find * -type d"
for path in "${ignore_paths[@]}"; do
find_command+=" -not -path $path"
done
existing_folders=($(eval $find_command))
filtered_existing_folders=()