mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: ya pack deploy path handling
This commit is contained in:
parent
1e0c5ff61c
commit
3193a40a95
1 changed files with 5 additions and 1 deletions
|
|
@ -9,7 +9,11 @@ use super::Dependency;
|
|||
|
||||
impl Dependency {
|
||||
pub(super) async fn deploy(&mut self) -> Result<()> {
|
||||
let from = self.local().join(&self.child);
|
||||
let from = if self.child.is_empty() {
|
||||
self.local().join(&self.child)
|
||||
} else {
|
||||
self.local().join(format!("{}.yazi", self.child))
|
||||
};
|
||||
|
||||
self.header("Deploying package `{name}`")?;
|
||||
self.is_flavor = maybe_exists(&from.join("flavor.toml")).await;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue