add print_text_in_color

This commit is contained in:
Daniel Hansson 2019-03-10 20:56:40 +01:00 committed by GitHub
parent 2a1e25c12b
commit 83fc4e9697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,16 @@ check_command() {
fi
}
# Colors
Color_Off='\e[0m'
IRed='\e[0;91m'
IGreen='\e[0;92m'
ICyan='\e[0;96m'
print_text_in_color() {
printf "%b%s%b\n" "$1" "$2" "$Color_Off"
}
# END OF FUNCTIONS #
# Check if root