Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 24, 2025
1 parent bdc5905 commit 50b3966
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/nanosaur/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,12 @@ def clean_workspace(nanosaur_ws_name) -> bool:
try:
os.system(f"rm -Rf {workspace_path}/build {workspace_path}/install {workspace_path}/log")
print(TerminalFormatter.color_text(f"Workspace '{workspace_path}' cleaned up.", color='green'))
return True
except Exception as e:
print(TerminalFormatter.color_text(f"Error running rm {str(e)}", color='red'))
return False
else:
print(TerminalFormatter.color_text(f"Workspace '{workspace_path}' does not contain build, install and log folders.", color='yellow'))
return False
return False
return True


def create_simple(platform, params: utilities.Params, args) -> bool:
Expand Down

0 comments on commit 50b3966

Please sign in to comment.