From: Nathan Wagner Date: Mon, 10 Nov 2014 07:41:18 +0000 (+0000) Subject: use printf instead of echo in startup functions X-Git-Url: https://pd.if.org/git/?p=startuptools;a=commitdiff_plain;h=274d9a9487447808d8892c8b45eaef0e15c0c33a use printf instead of echo in startup functions --- 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() {