diff options
author | erkin <me@erkin.party> | 2023-11-14 20:23:13 +0300 |
---|---|---|
committer | erkin <me@erkin.party> | 2023-11-14 20:23:13 +0300 |
commit | 58e5b6cd712802d411ffc2be880bc55d9f610f4a (patch) | |
tree | fc3493928bb2bc972df3a992bc804d66dbb54cfb | |
parent | dc1377fe9f37c7c30905a8a173ba7089bb1ece22 (diff) | |
download | vyatta-op-58e5b6cd712802d411ffc2be880bc55d9f610f4a.tar.gz vyatta-op-58e5b6cd712802d411ffc2be880bc55d9f610f4a.zip |
remote: T5726: Replace the download procedure call
-rwxr-xr-x | scripts/vyatta-image-tools.pl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl index 4866a96..d654a22 100755 --- a/scripts/vyatta-image-tools.pl +++ b/scripts/vyatta-image-tools.pl @@ -126,7 +126,9 @@ sub url_copy { } } } - friendly_download($from, $to); + print "Downloading...\n"; + download($from, $to); + print "Download complete.\n"; } exit 0; } @@ -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 { |