Skip to content

Commit

Permalink
Update bazel_cache_setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Jan 4, 2024
1 parent b9737e9 commit d5b4c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bazel_cache_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ def main():

print(f"Input {len(content)} bytes")

if len(content) == 0:
print("empty input, done")

if args.encode:
result = base64.b64encode(content)
else:
result = base64.b64decode(content)

if len(result) == 0:
print("Empty file, skip")

with open(args.out_file, "wb+") as f:
f.write(result)
print(f"Wrote {len(result)} bytes into {args.out_file}")
Expand Down

0 comments on commit d5b4c5c

Please sign in to comment.