Don't test for the presence of files to process. Nothing wrong will
happen if we don't have any file to process, and backup-files is for
quilt's internal use only, so there is no need to be paranoid.

Signed-off-by: Jean Delvare <[email protected]>
Reviewed-by: Raphael Hertzog <[email protected]>
---
 quilt/scripts/backup-files.in |    4 ----
 1 file changed, 4 deletions(-)

--- a/quilt/scripts/backup-files.in
+++ b/quilt/scripts/backup-files.in
@@ -210,10 +210,6 @@ if [ -z "${OPT_PREFIX}" ]; then
        usage "$progname"
        exit 1
 fi
-if [ ${#FILELIST[@]} == 0 ] && [ -z "$OPT_FILE" ]; then
-       usage "$progname"
-       exit 1
-fi
 
 if [ -n "$OPT_FILE" ]; then
        cat "$OPT_FILE" \


_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to