Skip to content

Commit

Permalink
Fix: Use singular noun for summary msg for 1 file.
Browse files Browse the repository at this point in the history
  • Loading branch information
badshah400 committed Feb 13, 2024
1 parent 7c32107 commit 0cd62a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tartex/tartex.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,11 @@ def _missing_supp(fpath):
def summary_msg(self, tarname, nfiles):
"""Return summary msg to print at end of run"""
num_files = nfiles + len(self.req_supfiles)
num_tag = f"{num_files} file" + ("s" if num_files > 1 else "")
if self.args.list:
print(f"Summary: {num_files} files to include.")
print(f"Summary: {num_tag} to include.")
else:
print(f"Summary: {tarname} generated with {num_files} files.")
print(f"Summary: {tarname} generated with {num_tag}.")

def tar_files(self):
"""Generates a tarball consisting of non-system input files needed to
Expand Down

0 comments on commit 0cd62a6

Please sign in to comment.