Use RED color for found procs

Also remove non-breaking space character.
This commit is contained in:
Jeremy Gardais 2020-06-18 12:14:03 +02:00
parent 27ef7256a0
commit 35b9846c80
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 5 deletions

View File

@ -46,11 +46,11 @@ usage() { # {{{
cat <<- EOF cat <<- EOF
usage: $PROGNAME usage: $PROGNAME
Apply any APT package upgrade if the host is free: Apply any APT package upgrade if the host is free:
* SGE queue is disable * SGE queue is disable
* No SGE jobs are running * No SGE jobs are running
EXAMPLES: EXAMPLES:
- Apply upgrade on the current host - Apply upgrade on the current host
${PROGNAME} ${PROGNAME}
EOF EOF
@ -62,7 +62,7 @@ debug_message() { # {{{
local_message="${1}" local_message="${1}"
## Print message if DEBUG is enable (=0) ## Print message if DEBUG is enable (=0)
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_message}" [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6b\e[m\n' "DEBUG ${PROGNAME}: ${local_message}"
} }
# }}} # }}}
@ -154,7 +154,7 @@ esac
## Simple debug message to valid current variables ## Simple debug message to valid current variables
debug_message "is_job_running \ debug_message "is_job_running \
jobs running on ${local_sge_hostname} host: ${RED}${local_sge_slots_used}${COLOR_DEBUG}." jobs running on ${local_sge_hostname} host: ${RED}${local_sge_slots_used}${COLOR_DEBUG}."
return "${return_job_running}" return "${return_job_running}"
@ -177,7 +177,7 @@ esac
## Simple debug message to valid current variables ## Simple debug message to valid current variables
debug_message "is_proc_running \ debug_message "is_proc_running \
${local_count_proc_pattern} procs seems running according to the pattern: ${RED}${local_proc_pattern}${COLOR_DEBUG}." procs running (with the pattern: ${RED}${local_proc_pattern}${COLOR_DEBUG}) on the current host: ${RED}${local_count_proc_pattern}${COLOR_DEBUG}."
return "${return_proc_running}" return "${return_proc_running}"