mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
fix clean trying to remove other cached stuff
This commit is contained in:
parent
fab04fdd1a
commit
3a8300110a
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ async fn main() -> Result<ExitCode> {
|
|||
|
||||
for cache_dir in config.work_dir.read_dir().into_diagnostic()? {
|
||||
let cache_dir = cache_dir.into_diagnostic()?;
|
||||
if let Some(id) = cache_dir.file_name().to_str() {
|
||||
if let Some(id) = cache_dir.file_name().to_str() && id.starts_with("haze-") {
|
||||
if !retain.iter().any(|cloud| cloud.id == id) {
|
||||
let path = cache_dir.path();
|
||||
// By default, the worktrees live within the work dir, we do not want to delete it here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue