From 35b9846c80f0d9e0f5298922321bb142c4fcf68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Thu, 18 Jun 2020 12:14:03 +0200 Subject: [PATCH] Use RED color for found procs Also remove non-breaking space character. --- cluster/apt.apply.update.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cluster/apt.apply.update.sh b/cluster/apt.apply.update.sh index 5484a40..aeaaaff 100755 --- a/cluster/apt.apply.update.sh +++ b/cluster/apt.apply.update.sh @@ -46,11 +46,11 @@ usage() { # {{{ cat <<- EOF 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 * No SGE jobs are running -EXAMPLES : +EXAMPLES: - Apply upgrade on the current host ${PROGNAME} EOF @@ -62,7 +62,7 @@ debug_message() { # {{{ local_message="${1}" ## 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 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}" @@ -177,7 +177,7 @@ esac ## Simple debug message to valid current variables 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}"