Skip to content

Commit

Permalink
Bugfix in RCC setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jherbel committed Nov 10, 2023
1 parent 03f64c3 commit 2649b40
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions v2/robotmk/src/bin/scheduler/setup/rcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ fn adjust_rcc_binary_permissions(executable_path: &Utf8Path) -> Result<()> {
}

fn clear_rcc_setup_working_directory(working_directory: &Utf8Path) -> Result<()> {
remove_dir_all(working_directory).context(format!(
"Failed to remove working directory for RCC setup: {working_directory}"
))?;
if working_directory.exists() {
remove_dir_all(working_directory).context(format!(
"Failed to remove working directory for RCC setup: {working_directory}"
))?;
}
create_dir_all(working_directory).context(format!(
"Failed to create working directory for RCC setup: {working_directory}"
))
Expand Down

0 comments on commit 2649b40

Please sign in to comment.