install: fix dependency installation

This commit is contained in:
2 * r + 2 * t
2025-01-28 17:55:18 +11:00
parent 4557501635
commit 30937b400a
+2 -2
View File
@@ -18,8 +18,8 @@ function install-deps
pacman -Q $argv &> /dev/null && return pacman -Q $argv &> /dev/null && return
# Get AUR helper or install if none # Get AUR helper or install if none
which yay > /dev/null && set -l helper yay || set -l helper paru which yay &> /dev/null && set -l helper yay || set -l helper paru
if ! which paru > /dev/null if ! which $helper &> /dev/null
warn 'No AUR helper found' warn 'No AUR helper found'
read -l -p "input 'Install yay? [Y/n] ' -n" confirm read -l -p "input 'Install yay? [Y/n] ' -n" confirm
if test "$confirm" = 'n' -o "$confirm" = 'N' if test "$confirm" = 'n' -o "$confirm" = 'N'