Skip to content

Commit

Permalink
Bugfixes: fix issue where cs-board-tools would crash when the invisib…
Browse files Browse the repository at this point in the history
…le __MACOSX directory is present, and fix issue where the incorrect flag name was being passed
  • Loading branch information
nikkiwritescode committed Dec 1, 2024
1 parent 2fdff83 commit a0483ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cs_board_tools/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def display(directory: str, file: str, gdrive_api_key=None):
@click.option('-sit', '--skip-icon-test', is_flag=True, flag_value=True, default=False)
@click.option('-spt', '--skip-max-paths-test', is_flag=True, flag_value=True, default=False)
@click.option('-snt', '--skip-naming-convention-test', is_flag=True, flag_value=True, default=False)
@click.option('-sst', '--skip-screenshot-test', is_flag=True, flag_value=True, default=False)
@click.option('-svt', '--skip-venture-card-test', is_flag=True, flag_value=True, default=False)
@click.option('-sst', '--skip-screenshots-test', is_flag=True, flag_value=True, default=False)
@click.option('-svt', '--skip-venture-cards-test', is_flag=True, flag_value=True, default=False)
@click.option('-sw', '--skip-warnings', is_flag=True, flag_value=True, default=False)
@click.option('-g', '--gdrive-api-key', is_flag=False, flag_value=None, default=None)
@click.option('-d', '--directory', type=str, help=directory_flag_help_message)
Expand Down
2 changes: 2 additions & 0 deletions cs_board_tools/io/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ def read_zip(file_path: Path, temp_dir_path: str = "./temp") -> list[Bundle]:
directories = []

for x in files: # I love this joke
if "_MACOSX" in x:
files.remove(x)
if x.endswith("/"):
directories.append(x)

Expand Down

0 comments on commit a0483ed

Please sign in to comment.