Refactor find command in images-indexer.sh
This commit is contained in:
@@ -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=()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user