From: Alex Richardson Date: Mon, 8 Aug 2022 15:29:56 +0000 (+0000) Subject: tools/ci-build.sh: Ensure that $builddir is set X-Git-Tag: dbus-1.15.0~14^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa90d09940afce95be5b3cc96e2cdf1d8ff80d19;p=thirdparty%2Fdbus.git tools/ci-build.sh: Ensure that $builddir is set When adding the new FreeBSD CI, this was not implicitly forwarded to QEMU, so the build script failed with confusing errors. Add an explicit check that the variable is set to make those cases easier to debug. --- diff --git a/tools/ci-build.sh b/tools/ci-build.sh index a71214db1..f9d9187c1 100755 --- a/tools/ci-build.sh +++ b/tools/ci-build.sh @@ -176,6 +176,10 @@ maybe_fail_tests () { NOCONFIGURE=1 ./autogen.sh # clean up directories from possible previous builds +if [ -z "$builddir" ]; then + echo "ERROR: builddir environment variable must be set!" + exit 1 +fi rm -rf "$builddir" rm -rf ci-build-dist rm -rf src-from-dist