From f95e21428cf1ebb7fdb24590b516f02d52b55683 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sat, 2 Jan 2021 23:05:16 +0100 Subject: [PATCH] bashbot.rc: convert to printf --- bashbot.rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bashbot.rc b/bashbot.rc index 13c94f7..8b79577 100755 --- a/bashbot.rc +++ b/bashbot.rc @@ -5,7 +5,7 @@ # # tested on: ubuntu, opensuse, debian # -#### $$VERSION$$ v1.20-0-g2ab00a2 +#### $$VERSION$$ v1.21-pre-39-ge8aa80c # shellcheck disable=SC2009 # shellcheck disable=SC2181 @@ -54,10 +54,10 @@ case "$1" in 'status') ps -f -u "$runas" | grep "$name" | grep -qF "bashbot.sh startbot" if [ "$?" = "0" ]; then - echo "bashbot ($name) is running" + printf "bashbot (%s) is runningi\n" "$name" RETVAL=0 else - echo "bashbot ($name) is stopped" + printf "bashbot (%s) is stopped\n" "$name" RETVAL=1 fi ;; @@ -79,7 +79,7 @@ case "$1" in fi ;; *) - echo "Usage: $0 { start | stop | restart | reload | restartback | suspendback | resumeback | killback }" + printf "%s\n" "Usage: $0 { start | stop | restart | reload | restartback | suspendback | resumeback | killback }" RETVAL=1 ;; esac