sys-apps/gawk: Ensure existence of /bin (for stage1)

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2022-04-09 14:32:03 +02:00
parent a45f06046f
commit dfe04a4fac

View File

@@ -90,6 +90,9 @@ pkg_postinst() {
done
if ! [[ -e ${EROOT}/bin/awk ]] ; then
# /bin might not exist yet (stage1)
[[ -d "${EROOT}/bin" ]] || mkdir "${EROOT}/bin" || die
ln -s "../usr/bin/gawk" "${EROOT}/bin/awk" || die
fi
fi