First pass on fixes
This commit is contained in:
parent
5826d89b97
commit
2f3be75fc7
269 changed files with 1593 additions and 2574 deletions
|
@ -951,14 +951,12 @@ fn cleanup_old_binaries() -> Result<()> {
|
|||
for entry in std::fs::read_dir(server_dir)? {
|
||||
let path = entry?.path();
|
||||
|
||||
if let Some(file_name) = path.file_name() {
|
||||
if let Some(version) = file_name.to_string_lossy().strip_prefix(&prefix) {
|
||||
if !is_new_version(version) && !is_file_in_use(file_name) {
|
||||
if let Some(file_name) = path.file_name()
|
||||
&& let Some(version) = file_name.to_string_lossy().strip_prefix(&prefix)
|
||||
&& !is_new_version(version) && !is_file_in_use(file_name) {
|
||||
log::info!("removing old remote server binary: {:?}", path);
|
||||
std::fs::remove_file(&path)?;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue