add -e to echo calls in tools script

This commit is contained in:
Daylin Morgan 2022-09-07 14:19:04 -05:00
parent 1ab9a774bc
commit f60692f257

View file

@ -89,9 +89,9 @@ get_days() {
now=$(date +'%s') now=$(date +'%s')
days=$(((now - install_date) / 86400)) days=$(((now - install_date) / 86400))
if ((days > 60)); then if ((days > 60)); then
echo "${RED}$date_out${NORMAL}" echo -e "${RED}$date_out${NORMAL}"
elif ((days > 30)); then elif ((days > 30)); then
echo "${YELLOW}$date_out${NORMAL}" echo -e "${YELLOW}$date_out${NORMAL}"
else else
echo "$date_out" echo "$date_out"
fi fi
@ -165,7 +165,7 @@ download() {
download_all() { download_all() {
echo "Downloading binaries to ${GREEN}$BIN_DIR${NORMAL}" echo -e "Downloading binaries to ${GREEN}$BIN_DIR${NORMAL}"
deps_check deps_check
@ -222,11 +222,11 @@ done
# if no args, show help # if no args, show help
if [ -z "$args" ]; then if [ -z "$args" ]; then
echo "${RED}No arguments supplied${NORMAL}" echo -e "${RED}No arguments supplied${NORMAL}"
help help
exit 0 exit 0
else else
echo "Downloading binaries to ${GREEN}$BIN_DIR${NORMAL}" echo -e "Downloading binaries to ${GREEN}$BIN_DIR${NORMAL}"
deps_check deps_check
for tool in "${args[@]}"; do for tool in "${args[@]}"; do
download "$tool" download "$tool"