release: fix ports checkout if /usr/ports does not exist
Reported by: Yasuhiro Kimura
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit c0dbc49ab3
)
This commit is contained in:
parent
0ed1051313
commit
e287201998
@ -213,6 +213,8 @@ chroot_setup() {
|
||||
if [ -z "${NOPORTS}" ] && [ -z "${PORTS_UPDATE_SKIP}" ]; then
|
||||
if [ -d "${CHROOTDIR}/usr/ports/.git" ]; then
|
||||
git -C ${CHROOTDIR}/usr/ports pull -q
|
||||
else
|
||||
${VCSCMD} ${PORT} -b ${PORTBRANCH} ${CHROOTDIR}/usr/ports
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user