aboutsummaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2020-08-27 14:36:00 +0000
committerGlen Barber <gjb@FreeBSD.org>2020-08-27 14:36:00 +0000
commit884ea3e64c0a97daa17fa6d372dca8be0ac5b11b (patch)
tree6762fd959e00b3f7640eaad3fb93845a037cecc7 /release
parenteade35355142bdca47a168c7ef5f7ea766467fe7 (diff)
downloadsrc-884ea3e64c0a97daa17fa6d372dca8be0ac5b11b.tar.gz
src-884ea3e64c0a97daa17fa6d372dca8be0ac5b11b.zip
Correct the conditional evaluating if git exists.
Pointyhat to: gjb (myself) Sponsored by: Rubicon Communications, LLC (netgate.com)
Notes
Notes: svn path=/projects/release-git/; revision=364868
Diffstat (limited to 'release')
-rwxr-xr-xrelease/release.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/release.sh b/release/release.sh
index 47b868dbcf9c..13ea5526e448 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -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)