]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Correct the plural in "1 file to consider." (Greg Louis)
authorMartin Pool <mbp@samba.org>
Thu, 14 Mar 2002 12:00:12 +0000 (12:00 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 14 Mar 2002 12:00:12 +0000 (12:00 +0000)
flist.c

diff --git a/flist.c b/flist.c
index 151ae876174b2adca7b2e8eb1cd22aa9ca294060..045c2f22a904b6f9bf21903d6c3c747ab2149e3b 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -101,12 +101,13 @@ static void finish_filelist_progress(const struct file_list *flist)
 {
        if (do_progress) {
                /* This overwrites the progress line */
-               rprintf(FINFO, "%d files to consider\n", flist->count);
-       } else
+               rprintf(FINFO, "%d file%sto consider\n",
+                       flist->count, flist->count == 1 ? " " : "s ");
+       } else {
                rprintf(FINFO, "done\n");
+       }
 }
 
-
 void show_flist_stats(void)
 {
        /* Nothing yet */