From ffb4c7176c449c96a4bdbb43aa5a0c86e0aafdd4 Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Wed, 24 Jul 2019 17:45:01 -0400 Subject: Fix bad types file download Use the curl -L option to follow redirects and the -f option to cause curl to fail (and stop the Docker image build) if it does not successfully retrieve a file Issue-ID: DCAEGEN2-1685 Change-Id: If8fd872e036ed5bc48656f8ca6853c297c6ac135 Signed-off-by: Jack Lucas --- cm-container/scripts/get-type-files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cm-container/scripts') diff --git a/cm-container/scripts/get-type-files.sh b/cm-container/scripts/get-type-files.sh index aa50bb7..067f45c 100755 --- a/cm-container/scripts/get-type-files.sh +++ b/cm-container/scripts/get-type-files.sh @@ -49,13 +49,13 @@ mkdir ${DEST} for typefile in ${DCAETYPEFILES} do mkdir -p ${DEST}/$(dirname ${typefile}) - curl -Ss $1/${typefile} >> ${DEST}/${typefile} + curl -Ss -L -f $1/${typefile} >> ${DEST}/${typefile} done for typefile in ${CCSDKTYPEFILES} do mkdir -p ${DEST}/$(dirname ${typefile}) - curl -Ss $2/${typefile} >> ${DEST}/${typefile} + curl -Ss -L -f $2/${typefile} >> ${DEST}/${typefile} done chown cfyuser:cfyuser ${DEST} -- cgit 1.2.3-korg