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