move abort up

This commit is contained in:
Tobias Powalowski 2023-10-26 08:52:27 +02:00
parent 753e19e031
commit c4f0d7ce3a

View file

@ -28,6 +28,11 @@ EOF
exit 0 exit 0
} }
_abort() {
echo "ERROR:" "$@"
exit 1
}
_parameters() { _parameters() {
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "${1}" in case "${1}" in
@ -53,11 +58,6 @@ while [ $# -gt 0 ]; do
done done
} }
_abort() {
echo "ERROR:" "$@"
exit 1
}
_cleanup() { _cleanup() {
if [[ -n "${_BUILD_DIR}" ]]; then if [[ -n "${_BUILD_DIR}" ]]; then
rm -rf -- "${_BUILD_DIR}" rm -rf -- "${_BUILD_DIR}"