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:
parent
c9f23072ee
commit
627411e999
@ -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}"
|
||||||
|
@ -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}"
|
||||||
|
Reference in New Issue
Block a user