X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=scripts%2Ffunctions.rc;h=16fcc6ee13b40322e2ad27aaa030743c87290cb4;hb=07d48467c9c6dc0edab652c0994d0973240e7997;hp=854a56735c3e1af787a09b41f95eeaf6ee2db962;hpb=d9f823e06902b93c9a708bf831128fe0f4d8d5a3;p=startuptools 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() {