Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't enforce white color, use terminal default instead #80

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading