diff options
-rwxr-xr-x | scripts/vyatta-image-tools.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl index bdee0c5..4866a96 100755 --- a/scripts/vyatta-image-tools.pl +++ b/scripts/vyatta-image-tools.pl @@ -126,7 +126,7 @@ sub url_copy { } } } - download($from, $to); + friendly_download($from, $to); } exit 0; } @@ -216,6 +216,11 @@ sub download { 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\")'"); +} + sub y_or_n { my ($msg) = @_; my $process_client = $ENV{'VYATTA_PROCESS_CLIENT'}; |