Fixed case confusion

This commit is contained in:
oddlama 2021-05-30 02:30:02 +02:00
parent 80e4bcbf90
commit 05bd2f465c
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 6 additions and 2 deletions

View File

@ -345,14 +345,18 @@ function check_has_programs() {
if ask "Do you want to install the missing programs automatically?"; then
local packages
local need_zfs=false
for program in "${failed[@]}"; do
[[ "$program" == "zfs" ]] \
&& need_zfs=true
if [[ -v "pacman_packages[$program]" ]]; then
packages+=("$program")
else
# Assignments to the empty string are explcitly ignored,
# as for example zfs needs to be handeled separately.
[[ -n "${pacman_packages[$program]}" ]] \
&& packages+=("${pacman_packages[$program]}")
else
packages+=("$program")
fi
done
pacman -Sy "${packages[@]}"