This commit is contained in:
itdoginfo
2025-02-18 13:21:52 +03:00
parent 1c02a2208b
commit 16c174d624
3 changed files with 3 additions and 8 deletions

View File

@@ -47,13 +47,7 @@ main() {
while read -r url; do
filename=$(basename "$url")
filepath="$DOWNLOAD_DIR/$filename"
if [ -f "$filepath" ] && [ -s "$filepath" ]; then
echo "$filename has already been uploaded"
download_success=1
continue
fi
attempt=0
while [ $attempt -lt $COUNT ]; do
echo "Download $filename (count $((attempt+1)))..."