upd: add support for colors in termux (android)

This commit is contained in:
PowerUser64 2022-06-22 00:36:53 -07:00
parent 0db510dc09
commit 3939bdcad7

View file

@ -12,6 +12,9 @@ fi
if command -v tput > /dev/null; then if command -v tput > /dev/null; then
GREEN="$(tput setaf 2)" GREEN="$(tput setaf 2)"
NC="$(tput sgr0)" NC="$(tput sgr0)"
elif [ -n "$TERMUX_VERSION"]
GREEN=""
NC="(B"
fi fi
# `git pull` everything mentioned in the REPOS_TO_UPDATE variable # `git pull` everything mentioned in the REPOS_TO_UPDATE variable