From e8334e209ed7f70bab1d773d67fe16914d4a563c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 28 Jan 2025 18:13:34 +1100 Subject: another fix --- install/util.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/util.fish b/install/util.fish index 812cee3..30ee6e1 100644 --- a/install/util.fish +++ b/install/util.fish @@ -57,9 +57,10 @@ end function install-optional-deps for dep in $argv - if ! pacman -Q $dep &> /dev/null + set -l dep_name (string split -f 1 ' ' $dep) + if ! pacman -Q $dep_name &> /dev/null read -l -p "input 'Install $dep? [Y/n] ' -n" confirm - test "$confirm" != 'n' -a "$confirm" != 'N' && install-deps (string split -f 1 ' ' $dep) + test "$confirm" != 'n' -a "$confirm" != 'N' && install-deps $dep_name end end end -- cgit v1.2.3-freya