Fixed case confusion
This commit is contained in:
parent
80e4bcbf90
commit
05bd2f465c
|
@ -345,14 +345,18 @@ function check_has_programs() {
|
||||||
if ask "Do you want to install the missing programs automatically?"; then
|
if ask "Do you want to install the missing programs automatically?"; then
|
||||||
local packages
|
local packages
|
||||||
local need_zfs=false
|
local need_zfs=false
|
||||||
|
|
||||||
for program in "${failed[@]}"; do
|
for program in "${failed[@]}"; do
|
||||||
|
[[ "$program" == "zfs" ]] \
|
||||||
|
&& need_zfs=true
|
||||||
|
|
||||||
if [[ -v "pacman_packages[$program]" ]]; then
|
if [[ -v "pacman_packages[$program]" ]]; then
|
||||||
packages+=("$program")
|
|
||||||
else
|
|
||||||
# Assignments to the empty string are explcitly ignored,
|
# Assignments to the empty string are explcitly ignored,
|
||||||
# as for example zfs needs to be handeled separately.
|
# as for example zfs needs to be handeled separately.
|
||||||
[[ -n "${pacman_packages[$program]}" ]] \
|
[[ -n "${pacman_packages[$program]}" ]] \
|
||||||
&& packages+=("${pacman_packages[$program]}")
|
&& packages+=("${pacman_packages[$program]}")
|
||||||
|
else
|
||||||
|
packages+=("$program")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
pacman -Sy "${packages[@]}"
|
pacman -Sy "${packages[@]}"
|
||||||
|
|
Loading…
Reference in New Issue