summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-11-30 16:33:36 +0700
committerGitHub <noreply@github.com>2021-11-30 16:33:36 +0700
commit3aed9d4041912fd825b6905432ce4b01fff15726 (patch)
tree93288ba9836f8ef6287c0721add82c47ef8d1ec9 /scripts
parentf7d48ceda6b45f8965d90916cb06e053cfaf3afe (diff)
parent75f8832d057d7eeb4f8f97f0640bff08844330f1 (diff)
downloadvyatta-op-3aed9d4041912fd825b6905432ce4b01fff15726.tar.gz
vyatta-op-3aed9d4041912fd825b6905432ce4b01fff15726.zip
Merge pull request #47 from erkin/current
T3950: Use friendly_download instead of regular download
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-image-tools.pl7
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'};