Handle failure to download files with curl

This commit is contained in:
arthur.barr@uk.ibm.com
2022-04-13 17:31:57 +01:00
committed by Arthur Barr
parent 7f5563fa97
commit fdc447761c
2 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# -*- mode: sh -*-
# © Copyright IBM Corporation 2015, 2020
# © Copyright IBM Corporation 2015, 2022
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -28,7 +28,7 @@ INSTALL_SDK=${INSTALL_SDK:-0}
DIR_TMP=/tmp/mq
mkdir -p ${DIR_TMP}
cd ${DIR_TMP}
curl -LO $MQ_URL
curl --fail --remote-name --location $MQ_URL
tar -xzf ./*.tar.gz
rm -f ./*.tar.gz