mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
no error on clean when workdir doesnt exist in the first place
This commit is contained in:
parent
cd595d0deb
commit
8a43282fc9
1 changed files with 7 additions and 5 deletions
|
|
@ -375,12 +375,14 @@ impl Cloud {
|
||||||
.remove_network(&self.network)
|
.remove_network(&self.network)
|
||||||
.await
|
.await
|
||||||
.wrap_err("Failed to remove network")?;
|
.wrap_err("Failed to remove network")?;
|
||||||
|
if self.workdir.exists() {
|
||||||
if let Err(e) = remove_dir_all(self.workdir)
|
if let Err(e) = remove_dir_all(self.workdir)
|
||||||
.await
|
.await
|
||||||
.wrap_err("Failed to remove work directory")
|
.wrap_err("Failed to remove work directory")
|
||||||
{
|
{
|
||||||
eprintln!("{}", e);
|
eprintln!("{}", e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue