Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Jun 10, 2022
1 parent 759ddb0 commit df929b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def main(argv: Sequence[str]) -> None:
"zap-generated")
os.makedirs(device_out_dir)
command = f"""\
{_REPO_BASE_PATH}/scripts/tools/zap/generate.py \
{_REPO_BASE_PATH}/scripts/tools/zap/generate.py
{_CHEF_SCRIPT_PATH}/devices/{device_name}.zap -o {device_out_dir}"""
shell.run_cmd(unwrap_cmd(command))
shell.run_cmd(f"touch {device_out_dir}/af-gen-event.h")
Expand Down Expand Up @@ -497,6 +497,8 @@ def main(argv: Sequence[str]) -> None:
archive_name = f"{label}-{device_name}"
archive_full_name = archive_prefix + archive_name + archive_suffix
flush_print(f"Adding build output to archive {archive_full_name}")
if os.path.exists(archive_full_name):
os.remove(archive_full_name)
with tarfile.open(archive_full_name, "w:gz") as tar:
tar.add(_CD_STAGING_DIR, arcname=".")
exit(0)
Expand Down

0 comments on commit df929b2

Please sign in to comment.