summaryrefslogtreecommitdiff
path: root/install/util.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-28 18:13:34 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-28 18:13:34 +1100
commite8334e209ed7f70bab1d773d67fe16914d4a563c (patch)
tree993d7beaf4d65c2b5123d50f38ee2c579cd9f195 /install/util.fish
parentinstall: fix optional dependency install (diff)
downloadcaelestia-cli-e8334e209ed7f70bab1d773d67fe16914d4a563c.tar.gz
caelestia-cli-e8334e209ed7f70bab1d773d67fe16914d4a563c.tar.bz2
caelestia-cli-e8334e209ed7f70bab1d773d67fe16914d4a563c.zip
another fix
Diffstat (limited to 'install/util.fish')
-rw-r--r--install/util.fish5
1 files changed, 3 insertions, 2 deletions
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