12 lines
346 B
Bash
12 lines
346 B
Bash
|
#! /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
|