Skip to content

Commit

Permalink
adding retrying option
Browse files Browse the repository at this point in the history
  • Loading branch information
annaibm committed May 24, 2024
1 parent 34b5259 commit 789f97e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/getDependencies.pl
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@
$digest = $sha->hexdigest;

if ($digest ne $expectedsha) {
$url = $jars_info[$i]{url};
print "Retrying: Downloading with url: $url \n";
downloadFile($url,$filename)
print "Expected sha is: $expectedsha,\n";
print "Actual sha is : $digest.\n";
print "Please delete $filename and rerun the program!";
Expand Down

0 comments on commit 789f97e

Please sign in to comment.