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 exit -1
} }
mkdir -p "${REPOS}" _mkdir()
mkdir -p "${DISTFILES}" {
mkdir -p "${BINPKG}" mkdir -p "${@}" || exit_err "Could not create dir ${@}."
mkdir -p "${LOGDIR}" }
_mkdir "${REPOS}"
_mkdir "${DISTFILES}"
_mkdir "${BINPKG}"
_mkdir "${LOGDIR}"
podman pull gentoo/stage3:amd64-nomultilib-systemd podman pull gentoo/stage3:amd64-nomultilib-systemd
podman build "${PODMAN_BUILD_ARGS[@]}" podman build "${PODMAN_BUILD_ARGS[@]}"

View File

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