Skip to content

Commit

Permalink
Chef - Fix: wrong order for clearing directory on zzap run (#19324)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpagravel authored and pull[bot] committed Jul 16, 2022
1 parent ff1ca5c commit 3314737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ def main(argv: Sequence[str]) -> None:

if options.do_run_zap:
flush_print("Running ZAP script to generate artifacts")
shell.run_cmd(f"mkdir -p {gen_dir}/")
shell.run_cmd(f"rm {gen_dir}/*")
shell.run_cmd(f"rm -rf {gen_dir}")
shell.run_cmd(f"mkdir -p {gen_dir}")
shell.run_cmd(
f"{_REPO_BASE_PATH}/scripts/tools/zap/generate.py {_CHEF_SCRIPT_PATH}/devices/{options.sample_device_type_name}.zap -o {gen_dir}")
# af-gen-event.h is not generated
Expand Down

0 comments on commit 3314737

Please sign in to comment.