summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install/util.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/util.fish b/install/util.fish
index 3f54c86..140a586 100644
--- a/install/util.fish
+++ b/install/util.fish
@@ -18,8 +18,8 @@ function install-deps
pacman -Q $argv &> /dev/null && return
# Get AUR helper or install if none
- which yay > /dev/null && set -l helper yay || set -l helper paru
- if ! which paru > /dev/null
+ which yay &> /dev/null && set -l helper yay || set -l helper paru
+ if ! which $helper &> /dev/null
warn 'No AUR helper found'
read -l -p "input 'Install yay? [Y/n] ' -n" confirm
if test "$confirm" = 'n' -o "$confirm" = 'N'