From 274d9a9487447808d8892c8b45eaef0e15c0c33a Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Mon, 10 Nov 2014 07:41:18 +0000 Subject: [PATCH] use printf instead of echo in startup functions --- scripts/functions.rc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/functions.rc b/scripts/functions.rc index 854a567..16fcc6e 100644 --- a/scripts/functions.rc +++ b/scripts/functions.rc @@ -7,27 +7,27 @@ off=$(tput sgr0) fi status_msg() { - echo "\r[$1]" + printf "\r[$1]\n" } status_starting() { - echo -n "[ ] Starting $1" + printf "[ ] Starting $1" } status_begin() { - echo -n "[ ] $*" + printf "[ ] $*" } status_stopping() { - echo -n "[ ] Stopping $1" + printf "[ ] Stopping $1" } status_ok() { - echo "\r[ ${green}OK$off ]" + printf "\r[ ${green}OK${off} ]\n" } status_fail() { - echo "\r[FAILED]" + printf "\r[${red}FAILED${off}]\n" } status_check() { -- 2.40.0