#######################################
### Define urls where SDKs can be downloaded / IoT.bzh part
-SDK_IOTBZH_BASEURL="http://iot.bzh/download/public/XDS/images/"
+SDK_IOTBZH_BASEURL="https://iot.bzh/download/public/XDS/images/"
DOWNLOADABLE_IOTBZH_URLS="
dab-m3ulcb/*
flounder-h3ulcb/*
flounder-m3ulcb/*
flounder-qemux86-64/*
-
- master-m3ulcb/*
"
+# master-m3ulcb/*
+
SDK_IOTBZH_URL_SUFFIX="/sdk/"
IMG_IOTBZH_URL_SUFFIX="/images/"
}
DEBUG=0
-if [[ ${1:0:2} = "-v" ]] ; then
- verbose=$(echo -s ${1} | sed -E "s/-([v]+).*/\1/")
- DEBUG=$(echo ${verbose} | wc -c)
+if [ "${1}" = "-v" ] ; then
+ shift
+ DEBUG=${1}
echo "Set verbosity level to : ${DEBUG}"
shift
fi
for base_url in $DOWNLOADABLE_AGL_URLS
do
dbg_debug "Look into ${base_url}"
- urls="$(expand_url $base_url $SDK_AGL_BASEURL)"
+ urls="$(expand_url ${base_url} $SDK_AGL_BASEURL)"
+ [ "$urls" = "" ] && { echo "ERROR: empty response while expanding ${SDK_AGL_BASEURL}${base_url}"; exit 1; }
for url in $urls
do
dbg_debug "URL to check: ${url}"
for base_url in $DOWNLOADABLE_IOTBZH_URLS
do
dbg_debug "Look into ${base_url}"
- urls="$(expand_url $base_url $SDK_IOTBZH_BASEURL)"
+ urls="$(expand_url ${base_url} $SDK_IOTBZH_BASEURL)"
+ [ "$urls" = "" ] && { echo "ERROR: empty response while expanding ${SDK_IOTBZH_BASEURL}${base_url}"; exit 1; }
for url in $urls
do
dbg_debug "URL to check: ${url}"