xbps-bin(8): the 'find-files' target now accepts multiple patterns.

This commit is contained in:
Juan RP
2011-12-22 10:45:13 +01:00
parent 13331f801c
commit d4278be914
5 changed files with 26 additions and 15 deletions

View File

@ -385,10 +385,10 @@ main(int argc, char **argv)
* Find files matched by a pattern from installed
* packages.
*/
if (argc != 2)
if (argc < 2)
usage(xhp);
rv = find_files_in_packages(argv[1]);
rv = find_files_in_packages(argc, argv);
} else {
usage(xhp);