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.
This commit is contained in:
Daan De Meyer
2024-07-11 16:09:15 +02:00
parent bbddfe5249
commit bb8f6ac445

View File

@@ -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