From 60db31001fe63d03a7e4acf9d1a3d26188d9c28d Mon Sep 17 00:00:00 2001 From: Matheus Albino Date: Wed, 11 Dec 2024 20:40:12 -0300 Subject: [PATCH] Fixes images-indexer.sh when folder already has media --- scripts/shell/images-indexer.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/shell/images-indexer.sh b/scripts/shell/images-indexer.sh index 139b183..5e05e23 100755 --- a/scripts/shell/images-indexer.sh +++ b/scripts/shell/images-indexer.sh @@ -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..."