renamed function _errex -> _exit_with_error (#2497)

This commit is contained in:
Georg Lauterbach 2022-03-21 15:01:07 +01:00 committed by GitHub
parent 37c8e44566
commit b7bf40ac21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 45 additions and 45 deletions

View file

@ -67,14 +67,14 @@ do
* )
__usage
_errex "The option ${OPT} is unknown."
_exit_with_error "The option ${OPT} is unknown."
;;
esac
done
shift $((OPTIND-1))
[[ -z ${*} ]] && { __usage ; _errex "No user specifed" ; }
[[ -z ${*} ]] && { __usage ; _exit_with_error "No user specifed" ; }
[[ -s ${DATABASE} ]] || exit 0
if ! ${MAILDEL}
@ -155,6 +155,6 @@ use 'sudo docker exec mailserver rm -R /var/mail/${DOMAIN}/${USER}'"
ERROR=true
fi
${ERROR} && _errex 'See the messages above.'
${ERROR} && _exit_with_error 'See the messages above.'
done
exit 0