Remove some \n.
This commit is contained in:
parent
4ac345253b
commit
0406b54e46
|
@ -64,7 +64,7 @@ service_info() {
|
||||||
if [ $(command -v ceph) ]; then
|
if [ $(command -v ceph) ]; then
|
||||||
# If a keyring file exists
|
# If a keyring file exists
|
||||||
if [ -f /etc/ceph/*.keyring ]; then
|
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
|
for keyring in "$(find /etc/ceph -type f -name *.keyring)"; do
|
||||||
CEPH_USERNAME=$(grep client ${keyring} | sed 's/^\[client.\(.*\)\]/\1/')
|
CEPH_USERNAME=$(grep client ${keyring} | sed 's/^\[client.\(.*\)\]/\1/')
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ if [ $(command -v ceph) ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display end message for this keyring
|
# 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
|
# Reset color
|
||||||
printf '%b' "${RESET}\n"
|
printf '%b' "${RESET}\n"
|
||||||
|
@ -105,7 +105,7 @@ if [ $(command -v ceph) ]; then
|
||||||
|
|
||||||
# Else use default
|
# Else use default
|
||||||
elif [ -f /etc/ceph/ceph.conf ]; then
|
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
|
# 1: test health
|
||||||
CEPH_HEALTH=$(ceph health)
|
CEPH_HEALTH=$(ceph health)
|
||||||
|
|
Loading…
Reference in New Issue