Fix file download logic to skip already downloaded files
This commit is contained in:
4
download_prerequisites.sh
Normal file → Executable file
4
download_prerequisites.sh
Normal file → Executable 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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user