aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-07-18 10:30:52 +0200
committerLennart Poettering <lennart@poettering.net>2017-07-20 14:37:05 +0200
commit9400405b4a8ef5f5e32f4b01f0a89ad3c17f3393 (patch)
treeae8727dcd81c07451963b7e74ef74b6772e1f7ef /mkosi.build
parentmkosi: support mkosi's --without-tests switch (diff)
downloadsystemd-9400405b4a8ef5f5e32f4b01f0a89ad3c17f3393.tar.gz
systemd-9400405b4a8ef5f5e32f4b01f0a89ad3c17f3393.tar.bz2
systemd-9400405b4a8ef5f5e32f4b01f0a89ad3c17f3393.zip
mkosi: use '[' rather than 'test' everywhere
Diffstat (limited to 'mkosi.build')
-rwxr-xr-xmkosi.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkosi.build b/mkosi.build
index c722e2319..12e88b909 100755
--- a/mkosi.build
+++ b/mkosi.build
@@ -25,7 +25,8 @@
[ -z "$BUILDDIR" ] && BUILDDIR=build
export LC_CTYPE=C.UTF-8
-test -f "$BUILDDIR"/build.ninja || meson "$BUILDDIR"
+
+[ -f "$BUILDDIR"/build.ninja ] || meson "$BUILDDIR"
ninja -C "$BUILDDIR" all
[ "$WITH_TESTS" = 0 ] || ninja -C "$BUILDDIR" test
ninja -C "$BUILDDIR" install