update download script

fixes a but in the download link script.
This commit is contained in:
Michael Parker 2021-03-29 19:38:41 -04:00
parent 4eff65e359
commit 942a1eccfb

View File

@ -1,6 +1,6 @@
## this is a simple script to validate a download url actaully exists
if [ ! -z "${DOWNLOAD_URL}"]; then
if [ ! -z "${DOWNLOAD_URL}" ]; then
if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then
echo -e "link is valid. setting download link to ${DOWNLOAD_URL}"
DOWNLOAD_LINK=${DOWNLOAD_URL}