bin/xbps-fetch: restore old behaviour for output file

This commit is contained in:
Duncaen 2019-06-19 23:08:31 +02:00 committed by Duncan Overbruck
parent a3af0e5559
commit ebb61edb16

View File

@ -115,7 +115,7 @@ main(int argc, char **argv)
}
for (int i = 0; i < argc; i++) {
if ((argc == 1) && !filename)
if (i > 0 || !filename)
filename = fname(argv[i]);
rv = xbps_fetch_file_dest(&xh, argv[i], filename, verbose ? "v" : "");