mkosi.build: Only create groups if they don't exist yet

master
Daan De Meyer 2 years ago
parent c3e2dc71de
commit 1e48ef3f5d
  1. 2
      mkosi.build

@ -91,7 +91,7 @@ cd "$BUILDDIR"
ninja
if [ "$WITH_TESTS" = 1 ] ; then
for id in 1 2 3; do
groupadd -g $id testgroup$id || :
getent group $id > /dev/null || groupadd -g $id testgroup$id
done
ninja test

Loading…
Cancel
Save