Skip to content

Commit

Permalink
Merge pull request #18 from arbulu89/master
Browse files Browse the repository at this point in the history
Fix compression parameter default value usage
  • Loading branch information
dirkmueller authored May 2, 2022
2 parents 3bb1a37 + 2c5088e commit 72d184c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go_modules
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ parser = argparse.ArgumentParser(
parser.add_argument("--strategy", default="vendor")
parser.add_argument("--archive")
parser.add_argument("--outdir")
parser.add_argument("--compression")
parser.add_argument("--compression", default=DEFAULT_COMPRESSION)
args = parser.parse_args()

outdir = args.outdir
Expand All @@ -67,7 +67,7 @@ def get_archive_extension():
if args.compression == "tar":
return "tar"

return "tar." + (args.compression or DEFAULT_COMPRESSION)
return "tar." + (args.compression)


archive_ext = get_archive_extension()
Expand Down

0 comments on commit 72d184c

Please sign in to comment.