summaryrefslogtreecommitdiff
path: root/mkosi.build
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
parenta818a2ae601dc1b15ae3cb50f4291f01187f2885 (diff)
downloadsystemd-9400405b4a8ef5f5e32f4b01f0a89ad3c17f3393.tar.gz
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 c722e23192..12e88b909c 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