Skip to content

Commit dbe4241

Browse files
committed
disable-colors
1 parent c9f2469 commit dbe4241

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

monitor.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@
2727
#VERSION NUMBER
2828
export version=0.2.200
2929

30-
#COLOR OUTPUT FOR RICH OUTPUT
31-
ORANGE=$'\e[1;33m'
32-
RED=$'\e[1;31m'
33-
NC=$'\e[0m'
34-
GREEN=$'\e[1;32m'
35-
PURPLE=$'\e[1;35m'
36-
BLUE=$'\e[1;34m'
37-
CYAN=$'\e[1;36m'
38-
YELLOW=$'\e[01;33m'
39-
REPEAT=$'\e[1A'
30+
if [ -z ${NO_COLOR} -o -z ${NOCOLOR} ] ; then
31+
#COLOR OUTPUT FOR RICH OUTPUT
32+
ORANGE=$'\e[1;33m'
33+
RED=$'\e[1;31m'
34+
NC=$'\e[0m'
35+
GREEN=$'\e[1;32m'
36+
PURPLE=$'\e[1;35m'
37+
BLUE=$'\e[1;34m'
38+
CYAN=$'\e[1;36m'
39+
YELLOW=$'\e[01;33m'
40+
REPEAT=$'\e[1A'
41+
else
42+
:
43+
fi
4044

4145
# ----------------------------------------------------------------------------------------
4246
# BETA WARNING ONLY IF ON THE BETA CHANNEL

0 commit comments

Comments
 (0)