add error display function

This commit is contained in:
Asif Bacchus 2020-09-14 23:36:17 -06:00
parent 394487fadb
commit 34d57d4553

View File

@ -8,6 +8,14 @@
# https://git.asifbacchus.app/ab-docker/scripts/LICENSE # https://git.asifbacchus.app/ab-docker/scripts/LICENSE
# #
### functions
consoleError() {
printf "\n%s%s%s\n\n" "$err" "$2" "$norm"
exit "$1"
}
### text formatting presets ### text formatting presets
if command -v tput > /dev/null; then if command -v tput > /dev/null; then
cyan=$(tput setaf 6) cyan=$(tput setaf 6)