diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-28 18:13:34 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-28 18:13:34 +1100 |
| commit | e8334e209ed7f70bab1d773d67fe16914d4a563c (patch) | |
| tree | 993d7beaf4d65c2b5123d50f38ee2c579cd9f195 | |
| parent | install: fix optional dependency install (diff) | |
| download | caelestia-cli-e8334e209ed7f70bab1d773d67fe16914d4a563c.tar.gz caelestia-cli-e8334e209ed7f70bab1d773d67fe16914d4a563c.tar.bz2 caelestia-cli-e8334e209ed7f70bab1d773d67fe16914d4a563c.zip | |
another fix
| -rw-r--r-- | install/util.fish | 5 |
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 |