From 883306dc648621959b9d18f7fe3f13135c06d2c2 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Mon, 23 Apr 2012 15:35:23 +0200 Subject: [PATCH] Avoid two superflous calls to /bin/echo in Fancy output. Signed-off-by: Didier Raboud --- init-functions | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 } -- 2.30.2