mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
fix color escaping on MacOS
This commit is contained in:
@@ -41,20 +41,20 @@ update_profile() {
|
|||||||
|
|
||||||
echo_red()
|
echo_red()
|
||||||
{
|
{
|
||||||
echo -e "\E[1;31m$1"
|
echo -e "\x1B[1;31m$1"
|
||||||
echo -e '\e[0m'
|
echo -e '\x1B[0m'
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_green()
|
echo_green()
|
||||||
{
|
{
|
||||||
echo -e "\E[1;32m$1"
|
echo -e "\x1B[1;32m$1"
|
||||||
echo -e '\e[0m'
|
echo -e '\x1B[0m'
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_yellow()
|
echo_yellow()
|
||||||
{
|
{
|
||||||
echo -e "\E[1;33m$1"
|
echo -e "\x1B[1;33m$1"
|
||||||
echo -e '\e[0m'
|
echo -e '\x1B[0m'
|
||||||
}
|
}
|
||||||
|
|
||||||
case $gamos in
|
case $gamos in
|
||||||
|
|||||||
Reference in New Issue
Block a user