mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
d757721464
commit
22a2e1f568
1 changed files with 2 additions and 3 deletions
|
|
@ -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?;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue