Remove some \n.
This commit is contained in:
parent
4ac345253b
commit
0406b54e46
dynmotd_scripts
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue