This commit is contained in:
pika 2025-05-18 18:30:16 +02:00
parent 75e32097ae
commit f060ad735f

View file

@ -51,6 +51,7 @@ run() {
fi fi
} }
# if given an array, it checks if the command is available, and if not - installs all packages in that array one by one
checkAndInstall() { checkAndInstall() {
# echo "DEBUG:: GOT ARRAY :: ${@}" # echo "DEBUG:: GOT ARRAY :: ${@}"
# ─< if it's not a list, then just check and install the package.. >────────────────────── # ─< if it's not a list, then just check and install the package.. >──────────────────────
@ -63,6 +64,7 @@ checkAndInstall() {
fi fi
else else
# ─< else go though the list of items and do the same >─────────────────────────────────── # ─< else go though the list of items and do the same >───────────────────────────────────
echo "${YELLOW} Installing package group - ${RED} $@ ${NC}"
for deps in "${@}"; do for deps in "${@}"; do
echo_info "Installing $deps" echo_info "Installing $deps"
if ! command_exists $deps; then if ! command_exists $deps; then