From 380e745d1c2cd7bc163a1485ee57b20c76395198 Mon Sep 17 00:00:00 2001 From: Alexey Shamrin Date: Wed, 27 May 2015 01:27:41 +0300 Subject: [PATCH] get rid of unnecessary printf --- shoreman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shoreman.sh b/shoreman.sh index 1bd5b8b..ad5eacf 100755 --- a/shoreman.sh +++ b/shoreman.sh @@ -36,7 +36,7 @@ log() { # Bash colors start from 31 up to 37. We calculate what color the process # gets based on its index. local color="$((31 + (index % 7)))" - format=$(printf "\033[0;%sm%%s %%s\t|\033[0m %%s" "$color") + format="\033[0;${color}m%s %s\t|\033[0m %s" fi while read -r data