mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-21 20:51:26 +00:00
Use tput for colors.
Color codes may vary from one terminal to another. Use tput to always get the right codes for the terminal in use.
This commit is contained in:
parent
5e22c910a5
commit
cb92952867
@ -7,9 +7,9 @@
|
||||
(
|
||||
# Pass everything to a subshell so the output can be piped to /var/log/centos2rocky.log
|
||||
|
||||
errcolor="\033[3;35m"
|
||||
nocolor="\033[0m"
|
||||
blue="\033[1;35m"
|
||||
errcolor=$(tput setaf 1)
|
||||
nocolor=$(tput op)
|
||||
blue=$(tput setaf 4)
|
||||
|
||||
set -e
|
||||
unset CDPATH
|
||||
|
Loading…
Reference in New Issue
Block a user