From: Didier Raboud Date: Mon, 23 Apr 2012 13:35:23 +0000 (+0200) Subject: Avoid two superflous calls to /bin/echo in Fancy output. X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~150 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=883306dc648621959b9d18f7fe3f13135c06d2c2;p=lsb.git Avoid two superflous calls to /bin/echo in Fancy output. Signed-off-by: Didier Raboud --- diff --git a/init-functions b/init-functions index 8265984..6c89701 100644 --- a/init-functions +++ b/init-functions @@ -415,15 +415,13 @@ log_end_msg_pre () { $TPUT sc $TPUT hpa 0 - /bin/echo -n "[" if [ $1 -eq 0 ]; then - /bin/echo -ne "${GREEN} ok " + /bin/echo -ne "[${GREEN} ok ${NORMAL}" elif [ $1 -eq 255 ]; then - /bin/echo -ne "${YELLOW}warn" + /bin/echo -ne "[${YELLOW}warn${NORMAL}" else - /bin/echo -ne "${RED}FAIL" + /bin/echo -ne "[${RED}FAIL${NORMAL}" fi - /bin/echo -ne "${NORMAL}]" $TPUT rc fi }