Commit 968377a6 authored by Rashad Kanavath's avatar Rashad Kanavath

BUG: fix script that downloads superbuild archives.

script must export LC_ALL=C to make sure the 'error' is echoed
correctly. Another thing is if there is a download error due to
proxy or firewall settings on the system. It should exit immediately
with a proper error message.
parent 4a2d5328
export LC_ALL=C
if [ $# -eq 2 ]; then
DOWNLOAD_DIR=$(readlink -f $1)
OUTPUT_DIR=$(readlink -f $2)
......@@ -42,8 +43,14 @@ for url in ${DOWNLOAD_LIST}; do
download_errors=$(grep "ERROR" download.log)
if [ "$download_errors" != "" ]; then
echo "=== Error downloading ${file_name} ==="
cat download.log
echo "[OTB] Error downloading ${file_name}"
echo "[OTB] Check your internet connectivity first!."
echo "[OTB] Check your firewall or proxy settings and then try again."
echo "[OTB] If you find that ${url} is unavailable,"
echo " please file a bug immediately on"
echo " "
cat download.log
exit 1
if [ "$file_name" != "" ]; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment