Fixes images-indexer.sh when folder already has media

This commit is contained in:
Matheus Albino
2024-12-11 20:40:12 -03:00
parent bf04a3c413
commit 60db31001f

View File

@@ -423,6 +423,8 @@ image_download_steps() {
tmp_dir="/tmp"
should_download_at_least_once=false
for folder in "${selected_folders[@]}"; do
cd "${furry_commission_ideas_path}/${folder}"
@@ -434,8 +436,14 @@ image_download_steps() {
continue
fi
should_download_at_least_once=true
done
if ! $should_download_at_least_once; then
return
fi
echo ""
echo "Download starting..."