Skip to content

Commit

Permalink
Don't enforce white color, use terminal default instead
Browse files Browse the repository at this point in the history
Fixes #68
  • Loading branch information
Antiz96 committed Jul 15, 2024
1 parent c53a022 commit ee5edcb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions admin/checkservices
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ if [[ -t 1 ]]; then
C_BLUE='\e[34m'
C_RED='\e[31m'
C_YELLOW='\e[33m'
C_WHITE='\e[37m'
C_RESET='\e[m'
fi

Expand All @@ -57,17 +56,17 @@ USER_SLICE=0 # act on users services

# print $* as an arrow line
arrow() {
printf "${C_BOLD}${C_BLUE}:: ${C_WHITE}%s${C_RESET}\n" "$*"
printf "${C_BOLD}${C_BLUE}:: ${C_RESET}${C_BOLD}%s${C_RESET}\n" "$*"
}

# print $* as an warning message
warn() {
printf "${C_BOLD}${C_YELLOW}Warning:: ${C_WHITE}%s${C_RESET}\n" "$*" >&2
printf "${C_BOLD}${C_YELLOW}Warning:: ${C_RESET}${C_BOLD}%s${C_RESET}\n" "$*" >&2
}

# print $* as an error message
error() {
printf "${C_BOLD}${C_RED}Error:: ${C_WHITE}%s${C_RESET}\n" "$*" >&2
printf "${C_BOLD}${C_RED}Error:: ${C_RESET}${C_BOLD}%s${C_RESET}\n" "$*" >&2
}

# usage : in_array( $needle, $haystack )
Expand Down

0 comments on commit ee5edcb

Please sign in to comment.