mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
mkosi.build: Only create groups if they don't exist yet
This commit is contained in:
parent
c3e2dc71de
commit
1e48ef3f5d
@ -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…
Reference in New Issue
Block a user