diff options
author | Jack Lucas <jflucas@research.att.com> | 2019-07-24 17:45:01 -0400 |
---|---|---|
committer | Jack Lucas <jflucas@research.att.com> | 2019-07-24 18:53:03 -0400 |
commit | ffb4c7176c449c96a4bdbb43aa5a0c86e0aafdd4 (patch) | |
tree | e220469831d4c447707e439f8ef5109943965705 /cm-container/scripts | |
parent | 567e399803a759e40c6a7d378bb517da4c5cd556 (diff) |
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 <jflucas@research.att.com>
Diffstat (limited to 'cm-container/scripts')
-rwxr-xr-x | cm-container/scripts/get-type-files.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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} |