From 05bd2f465c9dca97c9c2cd4e04b8e9010a15eba2 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 30 May 2021 02:30:02 +0200 Subject: [PATCH] Fixed case confusion --- scripts/utils.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index 8bdfc9d..e219bea 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -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[@]}"