add program check debug

This commit is contained in:
oddlama 2021-05-29 22:23:18 +02:00
parent a6023eba13
commit f03f4a99ab
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
2 changed files with 14 additions and 13 deletions

View File

@ -54,18 +54,18 @@ function preprocess_config() {
function prepare_installation_environment() {
einfo "Preparing installation environment"
local needed_programs=()
needed_programs+=(gpg)
needed_programs+=(hwclock)
needed_programs+=(lsblk)
needed_programs+=(ntpd)
needed_programs+=(partprobe)
needed_programs+=(python3)
needed_programs+=(rhash)
needed_programs+=(sgdisk)
needed_programs+=(uuidgen)
needed_programs+=(wget)
local needed_programs=(
gpg
hwclock
lsblk
ntpd
partprobe
python3
rhash
sgdisk
uuidgen
wget
)
[[ $USED_BTRFS == "true" ]] \
&& needed_programs+=(btrfs)

View File

@ -322,6 +322,7 @@ function parse_arguments() {
}
function check_has_programs() {
echo "$@"
local failed=()
local program
for program in "$@"; do
@ -329,7 +330,7 @@ function check_has_programs() {
|| failed+=("$program")
done
[[ ${#failed[@]} -eq 0 ]] \
[[ "${#failed[@]}" -eq 0 ]] \
&& return
echo "The following programs are required for the installer to work, but are currently missing on your system:" >&2