Remove some \n.

This commit is contained in:
Jeremy Gardais 2015-09-01 14:41:17 +02:00
parent 4ac345253b
commit 0406b54e46
1 changed files with 3 additions and 3 deletions
dynmotd_scripts

View File

@ -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)