File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ colorEcho() {
22
22
[ -t 1 ] && echo " $ec [1;${color} m$@ $eend " || echo " $@ "
23
23
}
24
24
25
- readonly -a ECHO_COLORS=(37 31 32 34 33 35 56 )
25
+ readonly -a ECHO_COLORS=(31 32 37 34 33 35 36 )
26
26
COUNT=0
27
27
28
28
for a; do
Original file line number Diff line number Diff line change 14
14
readonly ec=$' \033 ' # escape char
15
15
readonly eend=$' \033 [0m' # escape end
16
16
17
- readonly -a ECHO_COLORS=(37 31 32 34 33 35 56 )
17
+ readonly -a ECHO_COLORS=(31 32 37 34 33 35 36 )
18
18
COUNT=0
19
19
colorEcho () {
20
- local color=" ${ECHO_COLORS[$((COUNT++ % ${#ECHO_COLORS[@]} + 1 ))]}"
20
+ local color=" ${ECHO_COLORS[$((COUNT++ % ${#ECHO_COLORS[@]} ))]}"
21
21
# check isatty in bash https://stackoverflow.com/questions/10022323
22
22
# if stdout is console, turn on color output.
23
23
[ -t 1 ] && echo " $ec [1;${color} m$@ $eend " || echo " $@ "
You can’t perform that action at this time.
0 commit comments