mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-22 13:11: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
|
# Pass everything to a subshell so the output can be piped to /var/log/centos2rocky.log
|
||||||
|
|
||||||
errcolor="\033[3;35m"
|
errcolor=$(tput setaf 1)
|
||||||
nocolor="\033[0m"
|
nocolor=$(tput op)
|
||||||
blue="\033[1;35m"
|
blue=$(tput setaf 4)
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
unset CDPATH
|
unset CDPATH
|
||||||
|
Loading…
Reference in New Issue
Block a user