This repository was archived by the owner on Jul 2, 2023. It is now read-only.
Description
# ##############################################################################
# Function Name : printInColor
# Descripton : Print message in color
# Args : <TYPE> <MESSAGE>
# ##############################################################################
printInColor () {
if [ " $# " -ne 2 ]; then
echo " Usage: printInColor <TYPE> <MESSAGE>" >&2
echo " <TYPE>: DEBUG, DONE, ERROR, INFO, TEST, WARN" >&2
return
fi
if [ " $1 " = " DEBUG" ]; then
msg=" ${cPurple} [DEBUG]${cNc} "
elif [ " $1 " = " DONE" ]; then
msg=" ${cGreen} [DONE]${cNc} "
elif [ " $1 " = " ERROR" ]; then
msg=" ${cRed} [ERROR]${cNc} "
elif [ " $1 " = " INFO" ]; then
msg=" ${cBlue} [INFO]${cNc} "
elif [ " $1 " = " WARN" ]; then
msg=" ${cYellow} [WARN]${cNc} "
else
msg=" "
fi
shift
echo " $msg $1 ${cNc} " # The ${cNc} is a security if we forgot to reset color at the end of our message
}
With Nox colors are broken, so let's remove them!
Possible solution: https://stackoverflow.com/q/17998978
Add new option -c to remove colors
while getopts " e:fi:l:s:tv:w" opt; do
case $opt in
Before this line, if [ "$device" == "Nox" ] add args="$args -c"
" $adb " shell sh " $2 " /scripts/afk-arena/afk-daily.sh " $args " && saveDate
Reactions are currently unavailable
AFK-Daily/afk-daily.sh
Lines 279 to 305 in 27dde5c
With Nox colors are broken, so let's remove them!
Possible solution: https://stackoverflow.com/q/17998978
Add new option
-cto remove colorsAFK-Daily/afk-daily.sh
Lines 53 to 54 in 27dde5c
Before this line, if
[ "$device" == "Nox" ]addargs="$args -c"AFK-Daily/deploy.sh
Line 464 in 27dde5c