Fix file download logic to skip already downloaded files

This commit is contained in:
2026-02-16 08:56:39 +03:00
parent 402393867b
commit 343844e690

4
download_prerequisites.sh Normal file → Executable file
View File

@@ -23,6 +23,10 @@ echo "Начинаю загрузку файлов в папку 'src'..."
# Загружаем каждый файл
for url in "${files[@]}"; do
filename=$(basename "$url")
if [ -f "$filename" ]; then
echo "⊘ Пропускаю (уже загружен): $filename"
continue
fi
echo "Загружаю: $filename"
wget -q --show-progress "$url"