Correct the conditional evaluating if git exists.

Pointyhat to:	gjb (myself)
Sponsored by:	Rubicon Communications, LLC (netgate.com)
This commit is contained in:
gjb 2020-08-27 14:36:00 +00:00
parent da1432a246
commit c5018a89b8

View File

@ -266,7 +266,7 @@ extra_chroot_setup() {
# Install git from ports or packages if the ports tree is
# available and VCSCMD is unset.
_gitcmd="$(which git)"
if [ -d ${CHROOTDIR}/usr/ports -a ! -z "${_gitcmd}" ]; then
if [ -d ${CHROOTDIR}/usr/ports -a -z "${_gitcmd}" ]; then
# Trick the ports 'run-autotools-fixup' target to do the right
# thing.
_OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U)