wip
This commit is contained in:
parent
b3a950cfa5
commit
6b65f8750a
1 changed files with 14 additions and 7 deletions
21
distros.sh
21
distros.sh
|
@ -11,12 +11,19 @@ alpine="false"
|
||||||
opensuse="false"
|
opensuse="false"
|
||||||
|
|
||||||
# ─< ANSI color codes >───────────────────────────────────────────────────────────────────
|
# ─< ANSI color codes >───────────────────────────────────────────────────────────────────
|
||||||
RED='\033[0;31m'
|
# RED='\033[0;31m'
|
||||||
CYAN='\033[0;36m'
|
# CYAN='\033[0;36m'
|
||||||
YELLOW='\033[0;33m'
|
# YELLOW='\033[0;33m'
|
||||||
LIGHT_GREEN='\033[0;92m'
|
# LIGHT_GREEN='\033[0;92m'
|
||||||
BOLD='\033[1m'
|
# BOLD='\033[1m'
|
||||||
NC='\033[0m' # No Color
|
# 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() {
|
echo_error() {
|
||||||
printf "${BOLD}${RED}ERROR: ${NC}${RED}%s${NC}\n" "$1" >&2
|
printf "${BOLD}${RED}ERROR: ${NC}${RED}%s${NC}\n" "$1" >&2
|
||||||
|
@ -64,7 +71,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 >───────────────────────────────────
|
||||||
printf "${YELLOW} Installing package group - ${RED} %s ${NC}" "$@"
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue