scripts/dowload.pl: use glob to expand target dir
[openwrt/openwrt.git] / scripts / download.pl
index 645ac8546c44d033ea10e93f8662e98e32ec902c..bf9fe8c76190a6088940523124313d4d91256e15 100755 (executable)
@@ -16,7 +16,7 @@ use Text::ParseWords;
 @ARGV > 2 or die "Syntax: $0 <target dir> <filename> <hash> <url filename> [<mirror> ...]\n";
 
 my $url_filename;
-my $target = shift @ARGV;
+my $target = glob(shift @ARGV);
 my $filename = shift @ARGV;
 my $file_hash = shift @ARGV;
 $url_filename = shift @ARGV unless $ARGV[0] =~ /:\/\//;