summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-07-11 16:09:15 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-07-18 11:17:42 +0200
commitbb8f6ac445b80f9621503bec7a22caa57bb10ee4 (patch)
tree3bdefd2925fc466425882ddf72da6e5eb7774616
parentMerge pull request #33092 from YHNdnzj/freezer-cleanup (diff)
downloadsystemd-bb8f6ac445b80f9621503bec7a22caa57bb10ee4.tar.xz
systemd-bb8f6ac445b80f9621503bec7a22caa57bb10ee4.zip
mkosi: Skip sync script if NO_BUILD is enabled
If we're not doing a build, there's no point in syncing either so lets skip it.
Diffstat (limited to '')
-rwxr-xr-xmkosi.images/build/mkosi.sync2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkosi.images/build/mkosi.sync b/mkosi.images/build/mkosi.sync
index 198e1bc147..a545d49867 100755
--- a/mkosi.images/build/mkosi.sync
+++ b/mkosi.images/build/mkosi.sync
@@ -3,7 +3,7 @@
set -e
set -o nounset
-if ((${NO_SYNC:-0})); then
+if ((${NO_SYNC:-0})) || ((${NO_BUILD:-0})); then
exit 0
fi