forked from HPR/hpr_hub
2024-05-12_13-53-43Z_Sunday automatically download url if it exists
This commit is contained in:
parent
046344d523
commit
33456db630
@ -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}\""
|
||||
|
Loading…
Reference in New Issue
Block a user