Skip to content

Commit

Permalink
Fix build_dir doesn't exist + spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Oct 14, 2024
1 parent a78daa4 commit 2e7dcb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ openpty
optarg
optionxform
oran
OSAL
Packetizer
Paetz
params
Expand Down
2 changes: 1 addition & 1 deletion src/fprime/fbuild/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def run_fbuild_cli(
make_args: arguments to supply to the build tool (make or ninja)
"""
if parsed.command == "generate":
if parsed.force:
if parsed.force and build.build_dir.exists():
print(f"[INFO] Purging build directory at: {build.build_dir}")
build.purge()

Expand Down

0 comments on commit 2e7dcb9

Please sign in to comment.