From 22a2e1f5681e44c1bd02b901f627115d20fcaad9 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sun, 13 Apr 2025 14:44:00 +0800 Subject: [PATCH] .. --- yazi-cli/src/package/deploy.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yazi-cli/src/package/deploy.rs b/yazi-cli/src/package/deploy.rs index 7786391f..a5b75bd2 100644 --- a/yazi-cli/src/package/deploy.rs +++ b/yazi-cli/src/package/deploy.rs @@ -16,7 +16,7 @@ impl Dependency { let to = self.target(); let exists = maybe_exists(&to).await; - if maybe_exists(&to).await { + if exists { self.hash_check().await?; } @@ -25,13 +25,12 @@ impl Dependency { let res1 = Self::deploy_assets(from.join("assets"), to.join("assets")).await; let res2 = Self::deploy_sources(&from, &to, self.is_flavor).await; - - remove_dir_clean(&to).await; if !exists && (res2.is_err() || res1.is_err()) { self.delete_assets().await?; self.delete_sources().await?; } + remove_dir_clean(&to).await; self.hash = self.hash().await?; res2?; res1?;