Add options to continue interrupted downloads 24/11624/4
authorAnil Belur <abelur@linuxfoundation.org>
Sat, 30 Jun 2018 08:47:42 +0000 (18:47 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 12 Jul 2018 11:57:11 +0000 (21:57 +1000)
Add support to continue interrupted downloads with
`lftools sign deploy-nexus`. This allows to continue partially
downloaded files and when used with user specified path (-d).

RELENG-929
Change-Id: I58b576cdcea370f4ae1386529b90130140d6840e
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
shell/sign

index 84a6fc8..5b4a20e 100755 (executable)
@@ -149,6 +149,7 @@ sign_nexus() {
     echo "Fetching artifacts from $nexus_repo_url to $sign_dir..."
     if ! wget -nv --recursive --execute robots=off --no-parent \
               --no-host-directories --cut-dirs=3 --level=15 \
+              --continue --no-remove-listing \
               "$nexus_repo_url"; then
         echo "ERROR: Failed to download artifacts."
         exit 1