From 34d57d4553cbf43ae1b48bb25be51aad08e03923 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 14 Sep 2020 23:36:17 -0600 Subject: [PATCH] add error display function --- ab-openldap/ab-openldap-update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ab-openldap/ab-openldap-update.sh b/ab-openldap/ab-openldap-update.sh index 6d1c20a..9dd1c85 100755 --- a/ab-openldap/ab-openldap-update.sh +++ b/ab-openldap/ab-openldap-update.sh @@ -8,6 +8,14 @@ # 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 if command -v tput > /dev/null; then cyan=$(tput setaf 6)