Remove wrong code preventing new robocopy logic from running (#171)

This commit is contained in:
Caelan
2024-07-11 21:32:09 +01:00
committed by GitHub
parent 1e760b40d4
commit fc11832376

View File

@@ -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, &current_dir) {
fs::rename(&temp_path_new, &current_dir)?;
warn!("Failed to rename temp_path_new to current_dir ({}). Retrying with robocopy...", e1);
requires_robocopy = true;
}