12 lines
346 B
Bash
Executable File
12 lines
346 B
Bash
Executable File
#! /usr/bin/env bash
|
|
set -e
|
|
|
|
DATABASE_DOWNLOAD_ENDPOINT="https://base-donnees-publique.medicaments.gouv.fr/telechargement.php?fichier="
|
|
|
|
for file in $(cat ./data/database.links.txt); do
|
|
if [[ -z "$file" ]]; then
|
|
continue
|
|
fi
|
|
echo "Downloading $file"
|
|
wget -O "./data/bdpm/${file}" "${DATABASE_DOWNLOAD_ENDPOINT}${file}"
|
|
done |