From cfc04a18c071d025c650d39cffab16252a435d0f Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 19 May 2025 10:58:19 +0200 Subject: [PATCH] testing quite brutally.. --- distros.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/distros.sh b/distros.sh index e7450c8..57ab474 100755 --- a/distros.sh +++ b/distros.sh @@ -141,8 +141,11 @@ checkAndInstall() { # ─< if it's not a list, then just check and install the package.. >────────────────────── if [[ -z $2 ]]; then if ! command_exists "$1"; then - echo_pkg deps "Installing $1 .." - run _install "$1" + if run _install "$1"; then + echo_pkg deps "$1 - ${GREEN}installed" + else + echo_pkg deps "$1 is already installed.." + fi else echo_pkg deps "skipping $1 - as it's already installed.." fi @@ -152,8 +155,11 @@ checkAndInstall() { for deps in "${@}"; do echo_pkg deps "Installing $deps" if ! command_exists $deps; then - echo_pkg deps "$deps is not installed. Installing it now.." - run _install "$deps" + if run _install "$deps"; then + echo_pkg deps "$deps - ${GREEN}installed" + else + echo_pkg deps "$deps is already installed.." + fi else echo_pkg deps "skipping $deps - as it's already installed.." fi