diff --git a/build-image.sh b/build-image.sh index 234c0eb..cdb6432 100755 --- a/build-image.sh +++ b/build-image.sh @@ -43,6 +43,12 @@ PODMAN_BUILD_ARGS=( --no-cache ) +exit_err() +{ + echo "${@}" + exit -1 +} + mkdir -p "${REPOS}" mkdir -p "${DISTFILES}" mkdir -p "${BINPKG}" diff --git a/build-packages.sh b/build-packages.sh index c6188a5..fd8f1d3 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -39,6 +39,12 @@ PODMAN_BUILD_ARGS=( -v "${LOGDIR}:/var/log:rw,U" ) +exit_err() +{ + echo "${@}" + exit -1 +} + mkdir -p "${REPOS}" mkdir -p "${DISTFILES}" mkdir -p "${BINPKG}"