diff --git a/src/Rust/src/commands/apply_windows_impl.rs b/src/Rust/src/commands/apply_windows_impl.rs index c08338c2..3f0f4cfd 100644 --- a/src/Rust/src/commands/apply_windows_impl.rs +++ b/src/Rust/src/commands/apply_windows_impl.rs @@ -96,7 +96,6 @@ pub fn apply_package_impl<'a>(root_path: &PathBuf, app: &Manifest, package: &Pat if !requires_robocopy { // if we didn't need robocopy for the backup, we don't need it for the deploy hopefully if let Err(e1) = fs::rename(&temp_path_new, ¤t_dir) { - fs::rename(&temp_path_new, ¤t_dir)?; warn!("Failed to rename temp_path_new to current_dir ({}). Retrying with robocopy...", e1); requires_robocopy = true; }