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"
|
||||
|
||||
# ─< 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue