From 76ac7b2ac728e7e900d49e9646e5c2d9723f7a4b Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 18 May 2025 17:39:52 +0200 Subject: [PATCH] wip --- yazi.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/yazi.sh b/yazi.sh index c76cd71..703dd39 100644 --- a/yazi.sh +++ b/yazi.sh @@ -131,13 +131,12 @@ fi run cargo install --locked yazi-fm yazi-cli - } c_yazi() { if [ -e "$HOME/.config/yazi/package.toml" ]; then if command_exists ya; then - run ya pack -i || run ya pack -u + run ya pack -u || run ya pack -i fi else echo_warning "There was no yazi config found.. " @@ -149,16 +148,20 @@ echo_warning "Executing script silently!" fi - if $arch; then + case "$distro" in + arch) _install yazi - elif ! $opensuse; then + ;; + debian | ubuntu | fedora) if getDependencies; then i_yazi && c_yazi fi - else + ;; + *) echo_warning "$distro is not compatible with this script" - fi + ;; + esac } if getImports; then