Merge branch 'master' of schlomp.space:tastytea/scripts

This commit is contained in:
tastytea 2020-05-27 06:21:12 +02:00
commit a56e006743
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ for ausgabe in ${ausgaben}; do
url=$(curl -s "${ausgabe}" \
| grep -Eo 'https://fda-ifa.org/wp-content/uploads/[0-9]{4}/[0-9]{2}/[^ ]*\.epub')
file=$(echo "${url}" | grep -o '[^/]*\.epub')
if [ ! -e "${file}" ]; then
if [ -n "${file}" ] && [ ! -e "${file}" ]; then
echo "Downloading Gai Dao: ${file}."
curl -so "${file}" "${url}"
fi