Fixes images-indexer.sh when folder already has media
This commit is contained in:
@@ -423,6 +423,8 @@ image_download_steps() {
|
|||||||
|
|
||||||
tmp_dir="/tmp"
|
tmp_dir="/tmp"
|
||||||
|
|
||||||
|
should_download_at_least_once=false
|
||||||
|
|
||||||
for folder in "${selected_folders[@]}"; do
|
for folder in "${selected_folders[@]}"; do
|
||||||
cd "${furry_commission_ideas_path}/${folder}"
|
cd "${furry_commission_ideas_path}/${folder}"
|
||||||
|
|
||||||
@@ -434,8 +436,14 @@ image_download_steps() {
|
|||||||
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
should_download_at_least_once=true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! $should_download_at_least_once; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Download starting..."
|
echo "Download starting..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user