Renamed colors to attributes

Also correctly used tput to assign blue color

As suggested by @rwwiv

Co-authored-by: William Wernert <william.wernert@gmail.com>
This commit is contained in:
James Conroy
2022-02-10 19:35:08 -06:00
committed by James Conroy
parent dabae3888f
commit 3adb6c1389

View File

@@ -253,9 +253,9 @@ main() {
print_or_parse="print_line" print_or_parse="print_line"
if (( __tty == 1 )) ; then if (( __tty == 1 )) ; then
local focus_color="" ; focus_color="$(tput setaf 3 bold)" local bold; bold="$(tput bold)"
local NC="" local focus_color; focus_color="$(tput setaf 4)"
NC="$(tput sgr0)" # no color local reset_attr; reset_attr="$(tput sgr0)" # reset all attributes
fi fi
printf "\n${focus_color:-}%s${NC:-}\n\n" "Checking Docker status" printf "\n${focus_color:-}%s${NC:-}\n\n" "Checking Docker status"
fi fi