scripts/download.pl: print the command used to download files
authorFelix Fietkau <nbd@nbd.name>
Tue, 9 May 2017 13:20:42 +0000 (15:20 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Dec 2017 14:42:08 +0000 (15:42 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit cbe0a7ecc0b76f4d97d87ca59a0ff8074b8946f4)

scripts/download.pl

index 3936f76..5c9397b 100755 (executable)
@@ -139,6 +139,7 @@ sub download
                };
        } else {
                my @cmd = download_cmd("$mirror/$url_filename");
                };
        } else {
                my @cmd = download_cmd("$mirror/$url_filename");
+               print STDERR "+ ".join(" ",@cmd)."\n";
                open(FETCH_FD, '-|', @cmd) or die "Cannot launch curl or wget.\n";
                $hash_cmd and do {
                        open MD5SUM, "| $hash_cmd > '$target/$filename.hash'" or die "Cannot launch $hash_cmd.\n";
                open(FETCH_FD, '-|', @cmd) or die "Cannot launch curl or wget.\n";
                $hash_cmd and do {
                        open MD5SUM, "| $hash_cmd > '$target/$filename.hash'" or die "Cannot launch $hash_cmd.\n";