add text formatting presets

This commit is contained in:
Asif Bacchus 2020-09-14 23:36:03 -06:00
parent 0a032cdae1
commit 394487fadb

View File

@ -8,6 +8,22 @@
# https://git.asifbacchus.app/ab-docker/scripts/LICENSE # https://git.asifbacchus.app/ab-docker/scripts/LICENSE
# #
### text formatting presets
if command -v tput > /dev/null; then
cyan=$(tput setaf 6)
err=$(tput bold)$(tput setaf 1)
magenta=$(tput setaf 5)
norm=$(tput sgr0)
ok=$(tput setaf 2)
else
cyan=''
err=''
magenta=''
norm=''
ok=''
fi
### pre-requisites ### pre-requisites
# check if wget is installed # check if wget is installed