Use a wrapper around mkdir
This commit is contained in:
parent
627411e999
commit
e51a145cca
@ -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[@]}"
|
||||||
|
@ -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 \
|
||||||
|
Reference in New Issue
Block a user