Skip to content

Commit

Permalink
Merge pull request #82 from erkin/current
Browse files Browse the repository at this point in the history
remote: T5726: Replace the download procedure call
  • Loading branch information
c-po authored Nov 15, 2023
2 parents 28c670b + 58e5b6c commit 9c801c1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scripts/vyatta-image-tools.pl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ sub url_copy {
}
}
}
friendly_download($from, $to);
print "Downloading...\n";
download($from, $to);
print "Download complete.\n";
}
exit 0;
}
Expand Down Expand Up @@ -213,12 +215,7 @@ sub upload {
sub download {
my ($from, $to) = @_;
system("python3 -c 'from vyos.remote import download; download(\"$to\", \"$from\")'");
}
sub friendly_download {
my ($from, $to) = @_;
system("python3 -c 'from vyos.remote import friendly_download; friendly_download(\"$to\", \"$from\")'");
system("python3 -c 'from vyos.remote import download; download(\"$to\", \"$from\", progressbar=True, check_space=True)'");
}
sub y_or_n {
Expand Down

0 comments on commit 9c801c1

Please sign in to comment.