Correct the conditional evaluating if git exists.

Pointyhat to:	gjb (myself)
Sponsored by:	Rubicon Communications, LLC (netgate.com)
This commit is contained in:
Glen Barber 2020-08-27 14:36:00 +00:00
parent eade353551
commit 884ea3e64c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-git/; revision=364868

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)