mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-21 03:55:06 +00:00
scripts/download.pl: print the command used to download files
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
3c7a99ea90
commit
cbe0a7ecc0
@ -139,6 +139,7 @@ sub download
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
my @cmd = download_cmd("$mirror/$url_filename");
|
my @cmd = download_cmd("$mirror/$url_filename");
|
||||||
|
print STDERR "+ ".join(" ",@cmd)."\n";
|
||||||
open(FETCH_FD, '-|', @cmd) or die "Cannot launch curl or wget.\n";
|
open(FETCH_FD, '-|', @cmd) or die "Cannot launch curl or wget.\n";
|
||||||
$hash_cmd and do {
|
$hash_cmd and do {
|
||||||
open MD5SUM, "| $hash_cmd > '$target/$filename.hash'" or die "Cannot launch $hash_cmd.\n";
|
open MD5SUM, "| $hash_cmd > '$target/$filename.hash'" or die "Cannot launch $hash_cmd.\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user