mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
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:
committed by
James Conroy
parent
dabae3888f
commit
3adb6c1389
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user