From 514e24664c46fe5ab741b93a09780567a20be84c Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 14 Sep 2020 23:36:34 -0600 Subject: [PATCH] use func: consoleError to display error --- ab-openldap/ab-openldap-update.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ab-openldap/ab-openldap-update.sh b/ab-openldap/ab-openldap-update.sh index 9dd1c85..e89da2b 100755 --- a/ab-openldap/ab-openldap-update.sh +++ b/ab-openldap/ab-openldap-update.sh @@ -36,8 +36,7 @@ fi # check if wget is installed if ! command -v wget > /dev/null 2>&1; then - printf "\nSorry, this script requires that 'wget' is installed in order to automatically update files.\nExiting.\n\n" - exit 1 + consoleError '1' "Sorry, this script requires that 'wget' is installed in order to automatically update files." fi # is user root or in the docker group?