Merge pull request #13 from pajamian/main

Use tput for colors.
This commit is contained in:
Louis Abel 2021-05-06 12:25:29 -07:00 committed by GitHub
commit 05b65828ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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