Skip to content
Permalink
Browse files

Fix for download error state when curl is missing

PiperOrigin-RevId: 286487760
Change-Id: Ice696ade5b83b21e0f2845cae91d6bdae44d6262
  • Loading branch information
petewarden authored and tensorflower-gardener committed Dec 20, 2019
1 parent 9e04fce commit 05adb207d000d0e7115fa0afda4f2a0653a55cf8
Showing with 4 additions and 0 deletions.
  1. +4 −0 tensorflow/lite/micro/tools/make/download_and_extract.sh
@@ -80,6 +80,10 @@ download_and_extract() {
local tempfile=${tempdir}/temp_file
local curl_retries=3

command -v curl >/dev/null 2>&1 || {
echo >&2 "The required 'curl' tool isn't installed. Try 'apt-get install curl'."; exit 1;
}

echo "downloading ${url}" >&2
mkdir -p "${dir}"
# We've been seeing occasional 56 errors from valid URLs, so set up a retry

0 comments on commit 05adb20

Please sign in to comment.
You can’t perform that action at this time.