Use a wrapper around mkdir

This commit is contained in:
Nils Freydank 2023-10-01 18:50:24 +02:00
parent 627411e999
commit e51a145cca
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
2 changed files with 18 additions and 8 deletions

View File

@ -49,10 +49,15 @@ exit_err()
exit -1
}
mkdir -p "${REPOS}"
mkdir -p "${DISTFILES}"
mkdir -p "${BINPKG}"
mkdir -p "${LOGDIR}"
_mkdir()
{
mkdir -p "${@}" || exit_err "Could not create dir ${@}."
}
_mkdir "${REPOS}"
_mkdir "${DISTFILES}"
_mkdir "${BINPKG}"
_mkdir "${LOGDIR}"
podman pull gentoo/stage3:amd64-nomultilib-systemd
podman build "${PODMAN_BUILD_ARGS[@]}"

View File

@ -45,10 +45,15 @@ exit_err()
exit -1
}
mkdir -p "${REPOS}"
mkdir -p "${DISTFILES}"
mkdir -p "${BINPKG}"
mkdir -p "${LOGDIR}"
_mkdir()
{
mkdir -p "${@}" || exit_err "Could not create dir ${@}."
}
_mkdir "${REPOS}"
_mkdir "${DISTFILES}"
_mkdir "${BINPKG}"
_mkdir "${LOGDIR}"
podman run "${PODMAN_BUILD_ARGS[@]}" "${REGISTRY}:${VERSION}" \
bash -c "emerge --usepkg --newuse --keep-going --oneshot --deep --update @world \