Create function for basic error handling

(Yes, it might be a little bit inspired by the on used in Gentoo..)
This commit is contained in:
Nils Freydank 2023-10-01 18:50:24 +02:00
parent c9f23072ee
commit 627411e999
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
2 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,12 @@ PODMAN_BUILD_ARGS=(
--no-cache --no-cache
) )
exit_err()
{
echo "${@}"
exit -1
}
mkdir -p "${REPOS}" mkdir -p "${REPOS}"
mkdir -p "${DISTFILES}" mkdir -p "${DISTFILES}"
mkdir -p "${BINPKG}" mkdir -p "${BINPKG}"

View File

@ -39,6 +39,12 @@ PODMAN_BUILD_ARGS=(
-v "${LOGDIR}:/var/log:rw,U" -v "${LOGDIR}:/var/log:rw,U"
) )
exit_err()
{
echo "${@}"
exit -1
}
mkdir -p "${REPOS}" mkdir -p "${REPOS}"
mkdir -p "${DISTFILES}" mkdir -p "${DISTFILES}"
mkdir -p "${BINPKG}" mkdir -p "${BINPKG}"