From 0406b54e46395087c1cc31cab5b9ba3eeea96a0d Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 1 Sep 2015 14:41:17 +0200 Subject: [PATCH] Remove some \n. --- dynmotd_scripts/05ceph | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dynmotd_scripts/05ceph b/dynmotd_scripts/05ceph index 411aa41..a490642 100755 --- a/dynmotd_scripts/05ceph +++ b/dynmotd_scripts/05ceph @@ -64,7 +64,7 @@ service_info() { if [ $(command -v ceph) ]; then # If a keyring file exists if [ -f /etc/ceph/*.keyring ]; then - printf '%b' "\n${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" + printf '%b' "${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" for keyring in "$(find /etc/ceph -type f -name *.keyring)"; do CEPH_USERNAME=$(grep client ${keyring} | sed 's/^\[client.\(.*\)\]/\1/') @@ -97,7 +97,7 @@ if [ $(command -v ceph) ]; then fi # Display end message for this keyring - printf '%b' "\n${MAGENTA}+++++ ${WHITEB}END - ${keyring}${MAGENTA} +++++${RESET}" + printf '%b' "\n${MAGENTA}++++++ ${WHITEB}END - ${keyring}${MAGENTA} ++++++${RESET}" # Reset color printf '%b' "${RESET}\n" @@ -105,7 +105,7 @@ if [ $(command -v ceph) ]; then # Else use default elif [ -f /etc/ceph/ceph.conf ]; then - printf '%b' "\n${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" + printf '%b' "${MAGENTA}++++++++++++++++++++++++ ${WHITE}Ceph${RESET} ${MAGENTA}:++++++++++++++++++++++++${RESET}" # 1: test health CEPH_HEALTH=$(ceph health)