Correct the conditional evaluating if git exists.
Pointyhat to: gjb (myself) Sponsored by: Rubicon Communications, LLC (netgate.com)
This commit is contained in:
parent
da1432a246
commit
c5018a89b8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user