From: Sebastien Douheret Date: Thu, 14 Sep 2017 14:21:48 +0000 (+0200) Subject: Allow to install sdks from local file when iot download site is not available X-Git-Tag: v0.3.1~13 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-server.git;a=commitdiff_plain;h=d007a7512af1f6c9b9ab9a238b47f1ebfc9f4dc8 Allow to install sdks from local file when iot download site is not available Signed-off-by: Sebastien Douheret --- diff --git a/scripts/xds-utils/install-agl-sdks.sh b/scripts/xds-utils/install-agl-sdks.sh index f230569..5442552 100755 --- a/scripts/xds-utils/install-agl-sdks.sh +++ b/scripts/xds-utils/install-agl-sdks.sh @@ -8,7 +8,8 @@ # Support only poky_agl profile for now PROFILE="poky-agl" -SDKS=$(curl -s ${SDK_BASEURL} | grep -oP 'href="[^"]*.sh"' | cut -d '"' -f 2) +# Dynamically retreive SDKs (reduce timeout in case of iot website is not available) +SDKS=$(curl -s ${SDK_BASEURL} --connect-timeout 10 | grep -oP 'href="[^"]*.sh"' | cut -d '"' -f 2) || echo "WARNING: IoT.bzh download site not available." usage() { echo "Usage: $(basename $0) [-h|--help] [-clean] [-f|--file ] [-a|--arch ] [-l|--list]"