From 5faa6f1c8a1ce5d30255f78a787a368d6a06c1b2 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 13 Jun 2024 14:25:11 +0200 Subject: [PATCH] Update: Add yay support --- splitUPDATE | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/splitUPDATE b/splitUPDATE index d135135..d8fe6b5 100644 --- a/splitUPDATE +++ b/splitUPDATE @@ -19,6 +19,7 @@ if-shell -b 'tmux has-session' { # Run upgrade only if packages to upgrade display-message "Create a new window for system update" if 'command -v apt' 'new-window -nAPT "sudo apt update ; test $(apt list --upgradable 2>/dev/null | wc --lines) -gt 1 && { sudo aptitude full-upgrade ; sudo aptitude clean } ; logout"' - if 'command -v pacman' 'new-window -nPACMAN "sudo pacman --sync --refresh --; test $(pacman --query --upgrades -- 2>/dev/null | wc --lines) -gt 1 && { sudo pacman --sync --sysupgrade -- ; sleep 10 } ; logout"' + if 'command -v pacman' 'new-window -nPACMAN "sudo pacman --sync --refresh --; test $(pacman --query --upgrades -- 2>/dev/null | wc --lines) -ge 1 && { sudo pacman --sync --sysupgrade -- ; sleep 10 } ; logout"' + if 'command -v yay' 'split-window -v -d "echo Wait for checking AUR upgradesā€¦ ; sleep 5 ; yay --sync --refresh --aur --; test $(yay --query --upgrades --aur -- 2>/dev/null | wc --lines) -ge 1 && { sleep 5 ; yay --sync --sysupgrade --aur -- ; sleep 10 } ; logout"' } # }}}