2024-05-12_13-53-43Z_Sunday automatically download url if it exists

This commit is contained in:
Ken Fallon 2024-05-12 15:53:43 +02:00
parent 046344d523
commit 33456db630

View File

@ -27,6 +27,7 @@ do
if [ -n "${metadata_url}" ]
then
save_name=$( basename "${metadata_url}" | sed -e 's/[^A-Za-z0-9.]/_/g' -e 's/__/_/g' )
wget "${metadata_url}" -O "${reserve_show_dir}/${save_name}"
if [ ! -s "${reserve_show_dir}/${save_name}" ]
then
echo "ERROR: \"${metadata_url}\" needs to be downloaded as \"${reserve_show_dir}/${save_name}\""