From 4b1ed0ded2e355df594a8a7314afb50c6225cdaf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 19 Nov 2007 16:56:40 +0000 Subject: [PATCH] * Don't complain about groups with no gid. svn path=/nixos/trunk/; revision=9757 --- helpers/create-users-groups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/create-users-groups.sh b/helpers/create-users-groups.sh index cb68d23cb59..bdb1a91f0ed 100644 --- a/helpers/create-users-groups.sh +++ b/helpers/create-users-groups.sh @@ -11,7 +11,7 @@ cat "$2" | while true; do echo "updating group $name..." oldIFS="$IFS"; IFS=:; set -- $curEnt; IFS="$oldIFS" prevGid=$3 - if test "$prevGid" != "$gid"; then + if test -n "$gid" -a "$prevGid" != "$gid"; then groupmod "$name" --gid $gid fi fi