From 3adb6c1389b9c92caf6c4b1905a8a6f1eef20e6a Mon Sep 17 00:00:00 2001 From: James Conroy Date: Thu, 10 Feb 2022 19:35:08 -0600 Subject: [PATCH] Renamed colors to attributes Also correctly used tput to assign blue color As suggested by @rwwiv Co-authored-by: William Wernert --- salt/common/tools/sbin/so-status | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/common/tools/sbin/so-status b/salt/common/tools/sbin/so-status index 48fbd4464..f553b13b7 100755 --- a/salt/common/tools/sbin/so-status +++ b/salt/common/tools/sbin/so-status @@ -253,9 +253,9 @@ main() { print_or_parse="print_line" if (( __tty == 1 )) ; then - local focus_color="" ; focus_color="$(tput setaf 3 bold)" - local NC="" - NC="$(tput sgr0)" # no color + local bold; bold="$(tput bold)" + local focus_color; focus_color="$(tput setaf 4)" + local reset_attr; reset_attr="$(tput sgr0)" # reset all attributes fi printf "\n${focus_color:-}%s${NC:-}\n\n" "Checking Docker status" fi