From 6b65f8750ad92658e07c636e9d3711615d8a583e Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 18 May 2025 18:37:43 +0200 Subject: [PATCH] wip --- distros.sh | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/distros.sh b/distros.sh index 166cd6c..0c423bd 100755 --- a/distros.sh +++ b/distros.sh @@ -11,12 +11,19 @@ alpine="false" opensuse="false" # ─< ANSI color codes >─────────────────────────────────────────────────────────────────── -RED='\033[0;31m' -CYAN='\033[0;36m' -YELLOW='\033[0;33m' -LIGHT_GREEN='\033[0;92m' -BOLD='\033[1m' -NC='\033[0m' # No Color +# RED='\033[0;31m' +# CYAN='\033[0;36m' +# YELLOW='\033[0;33m' +# LIGHT_GREEN='\033[0;92m' +# BOLD='\033[1m' +# NC='\033[0m' # No Color + +RED=$'\e[31m' +GREEN=$'\e[32m' +YELLOW=$'\e[33m' +BLUE=$'\e[34m' +BOLD=$'\e[1m' +NC=$'\e[0m' echo_error() { printf "${BOLD}${RED}ERROR: ${NC}${RED}%s${NC}\n" "$1" >&2 @@ -64,7 +71,7 @@ checkAndInstall() { fi else # ─< else go though the list of items and do the same >─────────────────────────────────── - printf "${YELLOW} Installing package group - ${RED} %s ${NC}" "$@" + echo "${YELLOW} Installing package group - ${RED} $@ ${NC}" for deps in "${@}"; do echo_info "Installing $deps" if ! command_exists $deps; then